Update Tagged Releases #134
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: "Update Tagged Releases" | |
| on: | |
| schedule: | |
| - cron: "30 8 1 * *" | |
| workflow_dispatch: | |
| jobs: | |
| refresh-modules: | |
| name: Refresh Release Submodules | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| ref: releases | |
| submodules: false | |
| - name: Merge upstream changes to releases branch | |
| run: | | |
| git config --global user.email "action@github.com" | |
| git config --global user.name "GitHub Action" | |
| git -c submodule.core/entirety.update=none -c submodule.data-publication/idra.update=none submodule update --init --recursive | |
| git merge origin/master --strategy-option theirs || true | |
| git submodule foreach 'git reset HEAD $path' | |
| git submodule foreach 'git checkout `git describe --tags $(git rev-list --tags --max-count=1)`' || true | |
| # git add -A . | |
| # git commit -m "Merge master into releases" -a | |
| # - name: Push changes | |
| # uses: ad-m/github-push-action@master | |
| # continue-on-error: true | |
| # with: | |
| # github_token: ${{ secrets.GITHUB_TOKEN }} | |
| # branch: releases | |
| # force: true | |
| - name: Summarize latest releases | |
| run: | | |
| SUMMARY=$(git submodule -q foreach ' echo $(basename `git rev-parse --show-toplevel`) `git describe --tags $(git rev-list --tags --max-count=1)`' || true) | |
| echo $SUMMARY |