Update .forgejo/workflows/packages.yaml
Signed-off-by: xengi <forgejo@xengi.de>
This commit is contained in:
parent
aad3399c4b
commit
322e94b719
1 changed files with 7 additions and 2 deletions
|
|
@ -59,7 +59,10 @@ jobs:
|
|||
curl -s \
|
||||
--form-string "token=${{ secrets.PUSHOVER_API_TOKEN }}" \
|
||||
--form-string "user=${{ secrets.PUSHOVER_USER_KEY }}" \
|
||||
--form-string "message=${{ env.PACKAGE_NAME }} updated: ${{ steps.versions.outputs.aur }} -> ${{ steps.versions.outputs.upstream }}" \
|
||||
--form-string "title=AUR package ${{ env.PACKAGE_NAME }}" \
|
||||
--form-string "message=${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} from ${{ steps.versions.outputs.upstream }}" \
|
||||
--form-string "url_title="Forgejo Pipeline" \
|
||||
--form-string "url=${{ env.FORGEJO_SERVER_URL }}/${{ env.FORGEJO_REPOSITORY }}/actions?workflow=packages.yaml&actor=0&status=0" \
|
||||
https://api.pushover.net/1/messages.json
|
||||
- name: Send notification
|
||||
if: ${{ failure() }}
|
||||
|
|
@ -67,6 +70,8 @@ jobs:
|
|||
curl -s \
|
||||
--form-string "token=${{ secrets.PUSHOVER_API_TOKEN }}" \
|
||||
--form-string "user=${{ secrets.PUSHOVER_USER_KEY }}" \
|
||||
--form-string "message=Updating ${{ env.PACKAGE_NAME }} failed." \
|
||||
--form-string "title=AUR package ${{ env.PACKAGE_NAME }} failure" \
|
||||
--form-string "message=Updating ${{ env.PACKAGE_NAME }} from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }} failed." \
|
||||
--form-string "url_title="Forgejo Pipeline" \
|
||||
--form-string "url=${{ env.FORGEJO_SERVER_URL }}/${{ env.FORGEJO_REPOSITORY }}/actions?workflow=packages.yaml&actor=0&status=0" \
|
||||
https://api.pushover.net/1/messages.json
|
||||
Loading…
Reference in a new issue