Use farmOS-microblog create-message workflow to announce new versions #732

This commit is contained in:
Michael Stenta 2023-10-09 13:52:01 -04:00
parent 27eafb59b9
commit 14852bf32a
1 changed files with 5 additions and 16 deletions

View File

@ -224,19 +224,8 @@ jobs:
- build
- release
- publish
steps:
- name: Set FARMOS_VERSION from previous output.
run: echo "FARMOS_VERSION=${{ needs.build.outputs.farmos_version }}" >> $GITHUB_ENV
- name: Checkout the farmOS-microblog repository
uses: actions/checkout@v3
with:
repository: farmOS/farmOS-microblog
ssh-key: ${{ secrets.MICROBLOG_DEPLOY_KEY }}
- name: Configure Git.
run: |
git config --global user.name 'farmOS'
git config --global user.email 'noreply@farmOS.org'
- name: Commit/push to farmOS-microblog.
run: |
git commit --allow-empty --cleanup=whitespace -m '#farmOS ${{ env.FARMOS_VERSION }} has been released! https://github.com/farmOS/farmOS/releases/${{ env.FARMOS_VERSION }}'
git push origin main
uses: farmOS/farmOS-microblog/.github/workflows/create-message.yml@main
with:
message: '#farmOS ${{ needs.build.outputs.farmos_version }} has been released! https://github.com/farmOS/farmOS/releases/${{ needs.build.outputs.farmos_version }}'
secrets:
MICROBLOG_DEPLOY_KEY: ${{ secrets.MICROBLOG_DEPLOY_KEY }}