From b6cf090915343d972b73a4e1bcfbe9be44b7f492 Mon Sep 17 00:00:00 2001 From: lobo Date: Sun, 26 Feb 2023 20:02:48 +0000 Subject: [PATCH] tags test (fail) --- .gitea/workflows/hello_world.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/hello_world.yaml b/.gitea/workflows/hello_world.yaml index 9d92688..ef6445d 100644 --- a/.gitea/workflows/hello_world.yaml +++ b/.gitea/workflows/hello_world.yaml @@ -15,12 +15,14 @@ jobs: - name: List files in the repository run: | ls ${{ github.workspace }} + - run: false - run: echo "🍏 This job's status is ${{ job.status }}." - name: Success Notification if: success() run: | curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ -H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \ + -H "Tags: +1" \ -d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' - name: Failure Notification @@ -29,5 +31,6 @@ jobs: curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ -H "Priority: high" \ -H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \ + -H "Tags: warning" \ -d 'Job failed. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' \ No newline at end of file