Skip to content

Commit

Permalink
Fixes for pr 219 (#223)
Browse files Browse the repository at this point in the history
* Removed the auto approval of the PR

* Moved announcements to makeRelease
  • Loading branch information
walkero-gr authored Dec 17, 2024
1 parent 62bfde3 commit 3f5b4d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
scp_source: ${{ env.archive_name }}.deb
scp_target: /opt/amigarepo/ubuntu/pool/main
before_script: |
rm /opt/amigarepo/ubuntu/pool/main/clib4*.deb
rm /opt/amigarepo/ubuntu/pool/main/${{ env.archive_name }}.deb
after_script: |
/root/regenerate-packages.sh
Expand All @@ -99,13 +99,3 @@ jobs:
base: master
body: Automated changes as part of the release
title: Version files changes by the github bot

- name: Notify on Discord on successful release
if: ${{ inputs.spe == 'no' }}
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_ANNOUNCEMENTS_ID }}
webhook_token: ${{ secrets.DISCORD_ANNOUNCEMENTS_TOKEN }}
message: "New release of clib4 ${{ inputs.spe == 'yes' && 'SPE' || '' }}: **${{ inputs.git_tag }}** has been created. Check it out at: https://github.com/AmigaLabs/clib4/releases/tag/${{ inputs.git_tag }}"
username: GitHub Actions
avatar_url: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
11 changes: 11 additions & 0 deletions .github/workflows/makeRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ jobs:
git_tag: ${{ github.event.release.tag_name }}
gcc: 6
spe: "yes"

announcements:
needs: [compile-ppc, compile-spe]
name: Notify on Discord on successful release
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_ANNOUNCEMENTS_ID }}
webhook_token: ${{ secrets.DISCORD_ANNOUNCEMENTS_TOKEN }}
message: "New release of clib4: **${{ github.event.release.tag_name }}** has been created. Check it out at: https://github.com/AmigaLabs/clib4/releases/tag/${{ github.event.release.tag_name }}"
username: "GitHub Actions"
avatar_url: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"

0 comments on commit 3f5b4d8

Please sign in to comment.