Update to do_recdev 2 for simple model so that test can run mcmc on it #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: add-tag-on-model-update | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [closed] | |
jobs: | |
add-tag-on-model-update: | |
if: ${{ github.event.pull_request.merged }} | |
runs-on: ubuntu-latest | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Get the ss3 last tag on unix | |
id: get-latest-tag-unix | |
run: | | |
latest_tag=$(git ls-remote --tags https://github.com/nmfs-ost/ss3-source-code.git | tail -1 | sed 's/.*\/v//') | |
echo "tag=${latest_tag}" >> $GITHUB_OUTPUT | |
- name: Get the ss3 last tag repo on unix | |
id: get-latest-tag-repo-unix | |
run: | | |
latest_tag_repo=$(git ls-remote --tags | tail -1 | sed 's/.*\/v//') | |
echo "tag=${latest_tag_repo}" >> $GITHUB_OUTPUT | |
- name: create tag | |
uses: mathieudutour/[email protected] | |
if: ${{ steps.get-latest-tag-unix.outputs.tag != steps.get-latest-tag-repo-unix.outputs.tag}} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_tag: ${{ steps.get-latest-tag-unix.outputs.tag }} |