From 7858cae3851b2e38d44e36e6fd503f2cd240e2e7 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Thu, 5 Sep 2024 11:08:03 +1200 Subject: [PATCH] chore: Added authentication token for ntfy --- .github/workflows/ci.yml | 2 ++ .github/workflows/cron.yml | 2 ++ .gitignore | 3 +++ 3 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d21c216..c49f78d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,6 +95,7 @@ jobs: url: '${{ vars.NTFY_URL }}' title: Workflow success - ansible-role-common topic: 'ci-status' + headers: '{"Authorization": "Bearer ${{ secrets.NTFY_TOKEN }}" }' priority: 4 tags: +1,partying_face,action,successfully,completed details: Workflow has been successfully completed! @@ -108,6 +109,7 @@ jobs: url: '${{ vars.NTFY_URL }}' title: Workflow failed - ansible-role-common topic: 'ci-status' + headers: '{"Authorization": "Bearer ${{ secrets.NTFY_TOKEN }}" }' priority: 5 tags: -1,skull,action,failed details: Workflow has failed! diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 500b743..d0bbacf 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -39,6 +39,7 @@ jobs: if: success() with: url: '${{ vars.NTFY_URL }}' + headers: '{"Authorization": "Bearer ${{ secrets.NTFY_TOKEN }}" }' title: Workflow success - ansible-role-common topic: 'ci-status' priority: 4 @@ -52,6 +53,7 @@ jobs: if: failure() with: url: '${{ vars.NTFY_URL }}' + headers: '{"Authorization": "Bearer ${{ secrets.NTFY_TOKEN }}" }' title: Workflow failed - ansible-role-common topic: 'ci-status' priority: 5 diff --git a/.gitignore b/.gitignore index 56465f8..77d6459 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ env/ # Do not commit Vault password .vault_password.txt +# No commit of .secrets (Only for local CI Tests) +.secrets +.vars