Update Tagged Releases #104
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: "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: recursive | |
- name: Merge upstream changes to releases branch | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
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 | |
cd processing/wirecloud/wirecloud | |
git checkout 1.3.1 | |
cd ../../.. | |
cd third-party/domibus | |
git checkout 5.0 | |
cd ../.. | |
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 |