attempt subworkflow
Some checks failed
Explore-GitHub-Actions

This commit is contained in:
lobo 2023-02-26 23:54:14 +00:00
parent 0b2009984e
commit 6334410560

View File

@ -15,22 +15,24 @@ jobs:
- name: List files in the repository - name: List files in the repository
run: | run: |
ls ${{ github.workspace }} ls ${{ github.workspace }}
- run: true - run: false
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."
- name: Success Notification - name: notify
if: success() uses: lobo/actions_test/.gitea/workflows/notifcation.yaml@Notify
run: | # - name: Success Notification
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ # if: success()
-H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \ # run: |
-H "Tags: +1" \ # curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
-d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ # -H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' # -H "Tags: +1" \
- name: Failure Notification # -d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \
if: failure() # '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}'
run: | # - name: Failure Notification
curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ # if: failure()
-H "Priority: high" \ # run: |
-H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \ # curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \
-H "Tags: warning" \ # -H "Priority: high" \
-d 'Job failed. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ # -H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \
'${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' # -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 }}'