Update user example model files for new ss3 release #25
Workflow file for this run
This file contains hidden or 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 | |
| paths: | |
| - 'model_files/**/**' | |
| 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@v5 | |
| - name: Get the ss 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 ss last tag 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/github-tag-action@v6.2 | |
| 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 }} |