Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Automation #264

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
708f8cb
[Feature] Bringing in changes from test repo
rvyuha Oct 24, 2023
69aa1eb
[Bug] Removed unecisarry escape character.
rvyuha Oct 30, 2023
213d7df
Added the specifications document for the release automation code
yulric Oct 31, 2023
7b8bb03
Renamed the Update Documentation workflow to Create Release Branch. A…
yulric Nov 20, 2023
23d5af7
Merge branch 'automation-integration' of https://github.com/Big-Life-…
yulric Nov 20, 2023
a209d39
Renamed Upload Dictionaries workflow to Merge Release. Also renamed t…
yulric Nov 20, 2023
2719375
Removed rmarkdown, gh, and glue. Added rend to handle dependencies.
yulric Nov 20, 2023
596498a
Renamed OSF_REPO_LINK variable to osf_repo_link to be consistent
yulric Nov 20, 2023
7bb1c91
Renamed OSF_TOKEN variable to osf_token for consistency
yulric Nov 20, 2023
874d3fe
Removed development parameters from the create_release_files function
yulric Nov 20, 2023
1b18eeb
Added new module for logging
yulric Nov 20, 2023
d68548e
Display the log file path in the warning message for build errors
yulric Nov 20, 2023
38df092
Stop execution when there are build errors
yulric Nov 20, 2023
ae5e968
Renamed commit_files to commit_and_push_files
yulric Nov 20, 2023
8ba3c24
Simplified the get_dictionary function
yulric Nov 20, 2023
1fafe77
Removed the development parameter dictionary_path from download_dicti…
yulric Nov 20, 2023
378e1fb
Fixed typo
yulric Nov 20, 2023
116ed87
Avoid mutation
yulric Nov 20, 2023
39a7a1e
Moved the odm_dictionary$version_string into the files sheet under th…
yulric Nov 20, 2023
b824faf
Removed hardcoded column name
yulric Nov 20, 2023
0244d92
Fixed accessing from a sets sheet using a column name from the files …
yulric Nov 20, 2023
e1f92e5
Fixed bug
yulric Nov 20, 2023
a5b07e9
Fixed accessing column from parts sheet using a value from the files …
yulric Nov 20, 2023
f318807
Removed the unnecessary naming of vector
yulric Nov 20, 2023
d45a896
Added comment
yulric Nov 20, 2023
65a9ee1
Removed uncecessary else loop
yulric Nov 20, 2023
9074445
Removed unnecessary variable
yulric Nov 20, 2023
d70733c
Shifted if statement to avoid nesting
yulric Nov 20, 2023
231a1ee
Added comment
yulric Nov 20, 2023
9681645
Rewrote if loop to avoid nesting
yulric Nov 20, 2023
c1cf6b6
is_valid_part now returns only one boolean instead of a list since bo…
yulric Nov 20, 2023
7ca1031
Rename function
yulric Nov 20, 2023
5fe459e
Removed unused variable
yulric Nov 20, 2023
9beda6e
Removed log file
yulric Nov 20, 2023
c557821
Completed refactor
yulric Dec 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/update-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update Documentation
on:
workflow_dispatch:
jobs:
build-docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: R-package
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: setup-r
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.1.1"
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: R-package
- name: Source code
run: R -e 'source("R/create-release-files.R"); create_release_files(OSF_REPO_LINK = ${{secrets.OSF_REPO_LINK}}, OSF_TOKEN = ${{secrets.OSF_TOKEN}}, github_token = "${{ secrets.ACTION_TOKEN }}")'
27 changes: 27 additions & 0 deletions .github/workflows/upload-dictionaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload Dictionaries

on:
pull_request:
types: [closed]
branches:
- 'release/*'

jobs:
upload-dictionaries:
defaults:
run:
shell: bash
working-directory: R-package
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: setup-r
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.1.1"
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: R-package
- name: Source code
run: R -e 'source("R/osf-interactions.R"); update_osf(OSF_REPO_LINK = ${{secrets.OSF_REPO_LINK}}, OSF_TOKEN = ${{secrets.OSF.TOKEN}})'
2 changes: 2 additions & 0 deletions R-package/.Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
^.*\.Rproj$
^\.Rproj\.user$
27 changes: 27 additions & 0 deletions R-package/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Package: PHES.ODM
Type: Package
Title: PHES-ODM
Version: 2.1.0
Authors@R: c(
person(given = "Yulric", family = "Sequeira", role = c("aut"), email = "[email protected]"),
person(given = "Rostyslav", family = "Vyuha", role = c("aut","cre"), email = "[email protected]"))
Maintainer: Rostyslav Vyuha <[email protected]>
Description: PHES-ODM
Depends:
R (>= 4.0.3)
Imports:
rmarkdown,
glue,
osfr,
magrittr,
openxlsx,
logger,
gh
License: cc-by-4.0
URL: https://github.com/Big-Life-Lab/PHES-ODM
BugReports: https://github.com/Big-Life-Lab/PHES-ODM/issues
Encoding: UTF-8
RoxygenNote: 7.2.3
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
3 changes: 3 additions & 0 deletions R-package/NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Generated by roxygen2: do not edit by hand

export(create_release_files)
Loading