From 633441056061f2268e0acfcb9335835c2faa8840 Mon Sep 17 00:00:00 2001 From: lobo Date: Sun, 26 Feb 2023 23:54:14 +0000 Subject: [PATCH] attempt subworkflow --- .gitea/workflows/hello_world.yaml | 38 ++++++++++++++++--------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/hello_world.yaml b/.gitea/workflows/hello_world.yaml index 680b7d1..a8bdaba 100644 --- a/.gitea/workflows/hello_world.yaml +++ b/.gitea/workflows/hello_world.yaml @@ -15,22 +15,24 @@ jobs: - name: List files in the repository run: | ls ${{ github.workspace }} - - run: true + - 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 - if: failure() - run: | - 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 + - name: notify + uses: lobo/actions_test/.gitea/workflows/notifcation.yaml@Notify + # - 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 + # if: failure() + # run: | + # 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