Switch to custom PO action
This commit is contained in:
@ -22,18 +22,17 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Notify Build Start
|
||||
uses: umahmood/pushover-actions@main
|
||||
steps:
|
||||
- name: "[ON RUNNER] Notify Build Start"
|
||||
uses: https://git.tainton.uk/actions/pushover-action@v1.1.0
|
||||
env:
|
||||
PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_APP_TOKEN }}
|
||||
PUSHOVER_USER: ${{ secrets.PUSHOVER_USER_TOKEN }}
|
||||
PUSHOVER_APP_TOKEN: ${{ secrets.PUSHOVER_APP_TOKEN }}
|
||||
PUSHOVER_USER_TOKEN: ${{ secrets.PUSHOVER_USER_TOKEN }}
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
message: "Deploying stack ${{ gitea.repository }}"
|
||||
title: 'Stack Deployment Started'
|
||||
message: "${{ gitea.event.head_commit.message }}"
|
||||
url: "${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_id }}"
|
||||
url_title: 'View Deployment'
|
||||
url_title: 'View Logs'
|
||||
|
||||
- name: "[ON RUNNER] Checkout the repo"
|
||||
uses: actions/checkout@v4
|
||||
@ -85,15 +84,13 @@ jobs:
|
||||
cd ${{ env.project_folder }}
|
||||
docker compose --env-file .env up --detach
|
||||
|
||||
- name: Notify Build End
|
||||
uses: umahmood/pushover-actions@main
|
||||
if: ${{ !cancelled() }}
|
||||
- name: "[ON RUNNER] Notify Build End"
|
||||
uses: https://git.tainton.uk/actions/pushover-action@v1.1.0
|
||||
env:
|
||||
PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_APP_TOKEN }}
|
||||
PUSHOVER_USER: ${{ secrets.PUSHOVER_USER_TOKEN }}
|
||||
PUSHOVER_APP_TOKEN: ${{ secrets.PUSHOVER_APP_TOKEN }}
|
||||
PUSHOVER_USER_TOKEN: ${{ secrets.PUSHOVER_USER_TOKEN }}
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
title: "Stack Deployment ${{ job.status }}"
|
||||
message: "${{ gitea.event.head_commit.message }}"
|
||||
message: "Deployed stack ${{ gitea.repository }}"
|
||||
title: 'Stack Deployment ${{ job.status }}'
|
||||
url: "${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_id }}"
|
||||
url_title: 'View Logs'
|
||||
|
Reference in New Issue
Block a user