Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 39 additions & 0 deletions .github/workflows/update-bam-example-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Update example data when convert_output.R or variable-name resources change
name: update-bam-example-data
on:
pull_request:
branches: [main]
paths:
- 'R/conout_bam.R'
- 'inst/resources/bam_var_names.csv'
workflow_dispatch:
jobs:
update-example-data:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name }}

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pak, any::usethis, local::.

- name: Update example data
run: Rscript data-raw/DATASET_BAM.R

- name: Commit and push updated example data
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add data/vermilion_snapper.rda
git diff --cached --quiet || git commit -m "chore: update BAM vermilion snapper example from converter resource changes (triggered by $(git log -1 --pretty=format:'%h %s' HEAD)) [skip ci]"
git push
39 changes: 39 additions & 0 deletions .github/workflows/update-example-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Update ss3 example data from Report.sso when convert_output.R or variable-name resources change
name: update-example-data
on:
pull_request:
branches: [main]
paths:
- 'R/conout_ss3.R'
- 'inst/resources/ss3_var_names.csv'
workflow_dispatch:
jobs:
update-example-data:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name }}

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pak, any::usethis, local::.

- name: Update example data
run: Rscript data-raw/DATASET.R

- name: Commit and push updated example data
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add data/example_data.rda
git diff --cached --quiet || git commit -m "chore: update SS3 example_data from converter resource changes (triggered by $(git log -1 --pretty=format:'%h %s' HEAD)) [skip ci]"
git push
4 changes: 2 additions & 2 deletions .github/workflows/update-rceattle-example-data.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Update example data when convert_output.R or variable-name resources change
# Update Rceattle example data when convert_output.R or variable-name resources change
name: update-rceattle-example-data
on:
pull_request:
branches: [main]
paths:
- 'R/convert_output.R'
- 'R/conout_rceattle.R'
- 'inst/resources/rceattle_var_names.csv'
workflow_dispatch:
jobs:
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/update-ss3-example-data.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Update example data when convert_output.R or variable-name resources change
name: update-example-data
# Update ss3 example data from r4ss object when convert_output.R or variable-name resources change
name: update-ss3-example-data
on:
pull_request:
branches: [main]
paths:
- 'R/convert_output.R'
- 'inst/resources/bam_var_names.csv'
- 'R/conout_ss3.R'
- 'inst/resources/ss3_var_names.csv'
- 'inst/resources/rceattle_var_names.csv'
- 'inst/resources/fims_var_names.csv'
workflow_dispatch:
jobs:
update-example-data:
Expand All @@ -30,13 +27,13 @@ jobs:
extra-packages: any::pak, any::usethis, local::.

- name: Update example data
run: Rscript data-raw/DATASET.R
run: Rscript data-raw/DATASET_SS3.R

- name: Commit and push updated example data
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add data/example_data.rda
git diff --cached --quiet || git commit -m "chore: update example_data from converter resource changes (triggered by $(git log -1 --pretty=format:'%h %s' HEAD)) [skip ci]"
git add data/ss3_simple.rda
git diff --cached --quiet || git commit -m "chore: update SS3 r4ss example_data from converter resource changes (triggered by $(git log -1 --pretty=format:'%h %s' HEAD)) [skip ci]"
git push
Loading