Removing trigger for DAG config check.
This commit is contained in:
@@ -4,8 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'app-configs/rinoa/dagu/dags/**'
|
- "app-configs/rinoa/dagu/dags/**"
|
||||||
- '**/dag-config-check.yml'
|
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
@@ -25,10 +24,10 @@ jobs:
|
|||||||
- name: Gotify Notification
|
- name: Gotify Notification
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
gotify_api_base: "${{ secrets.GOTIFY_URL }}"
|
||||||
gotify_app_token: '${{ secrets.RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: "${{ secrets.RUNNER_GOTIFY_TOKEN }}"
|
||||||
notification_title: 'GITEA: Dagu Validation'
|
notification_title: "GITEA: Dagu Validation"
|
||||||
notification_message: 'Setting up Ansible and Vault... 🏗️'
|
notification_message: "Setting up Ansible and Vault... 🏗️"
|
||||||
|
|
||||||
- name: Install Ansible
|
- name: Install Ansible
|
||||||
uses: alex-oleshkevich/setup-ansible@v1.0.1
|
uses: alex-oleshkevich/setup-ansible@v1.0.1
|
||||||
@@ -62,10 +61,10 @@ jobs:
|
|||||||
- name: Gotify Notification
|
- name: Gotify Notification
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
gotify_api_base: "${{ secrets.GOTIFY_URL }}"
|
||||||
gotify_app_token: '${{ secrets.RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: "${{ secrets.RUNNER_GOTIFY_TOKEN }}"
|
||||||
notification_title: 'GITEA: Dagu Validation'
|
notification_title: "GITEA: Dagu Validation"
|
||||||
notification_message: 'Ansible and Vault setups completed, starting Dagu validation... 🔬'
|
notification_message: "Ansible and Vault setups completed, starting Dagu validation... 🔬"
|
||||||
|
|
||||||
- name: Install dagu
|
- name: Install dagu
|
||||||
run: |
|
run: |
|
||||||
@@ -91,19 +90,19 @@ jobs:
|
|||||||
if: steps.validate-dags.outputs.exit_code == '0'
|
if: steps.validate-dags.outputs.exit_code == '0'
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
gotify_api_base: "${{ secrets.GOTIFY_URL }}"
|
||||||
gotify_app_token: '${{ secrets.RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: "${{ secrets.RUNNER_GOTIFY_TOKEN }}"
|
||||||
notification_title: 'GITEA: Dagu Validation'
|
notification_title: "GITEA: Dagu Validation"
|
||||||
notification_message: 'Dagu DAG validation passed! 🏁'
|
notification_message: "Dagu DAG validation passed! 🏁"
|
||||||
|
|
||||||
- name: Gotify Notification
|
- name: Gotify Notification
|
||||||
if: steps.validate-dags.outputs.exit_code != '0'
|
if: steps.validate-dags.outputs.exit_code != '0'
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.GOTIFY_URL }}'
|
gotify_api_base: "${{ secrets.GOTIFY_URL }}"
|
||||||
gotify_app_token: '${{ secrets.RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: "${{ secrets.RUNNER_GOTIFY_TOKEN }}"
|
||||||
notification_title: 'GITEA: Dagu Validation'
|
notification_title: "GITEA: Dagu Validation"
|
||||||
notification_message: 'Dagu DAG validation failed! 🚫'
|
notification_message: "Dagu DAG validation failed! 🚫"
|
||||||
|
|
||||||
- name: Trigger Tar Valon Ansible Deploy
|
- name: Trigger Tar Valon Ansible Deploy
|
||||||
run: |
|
run: |
|
||||||
@@ -112,4 +111,4 @@ jobs:
|
|||||||
-H "Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"https://git.trez.wtf/api/v1/repos/Trez/tar-valon-ansible/actions/workflows/gitea_tar-valon_ansible_deploy.yml/dispatches" \
|
"https://git.trez.wtf/api/v1/repos/Trez/tar-valon-ansible/actions/workflows/gitea_tar-valon_ansible_deploy.yml/dispatches" \
|
||||||
-d "{\"ref\":\"${BRANCH}\"}"
|
-d "{\"ref\":\"${BRANCH}\"}"
|
||||||
|
|||||||
Reference in New Issue
Block a user