Skip to content

ReleasePost

ReleasePost #93

Workflow file for this run

name: ReleasePost
on:
workflow_run:
workflows: ["Publish"]
types:
- completed
jobs:
release_to_main:
name: Sync main with release
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: main
persist-credentials: false
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Sync main
run: |
git fetch origin release
git merge --ff-only origin/release
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
branch: main
update_changelog:
needs: release_to_main
name: Update Changelog - Model
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: main
fetch-depth: 0
persist-credentials: false
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Update changelog
run: ./gradlew changelog-add-model-section
- name: Commit CHANGELOG.md and merge to develop
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add CHANGELOG.md
git commit -m "AUTOMATION: Changelog update"
git checkout -t origin/develop
git merge --ff main -m "AUTOMATION: Merge main into develop"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
branch: develop