This commit is contained in:
@@ -105,16 +105,11 @@ jobs:
|
|||||||
notification_title: 'GITEA: Dagu Validation'
|
notification_title: 'GITEA: Dagu Validation'
|
||||||
notification_message: 'Dagu DAG validation failed! 🚫'
|
notification_message: 'Dagu DAG validation failed! 🚫'
|
||||||
|
|
||||||
- name: Write downstream trigger marker
|
- name: Trigger downstream workflow
|
||||||
if: steps.validate-dags.outputs.exit_code == '0'
|
|
||||||
run: |
|
run: |
|
||||||
echo "DAG validation completed at $(date -u)" > .dag-validation-complete
|
BRANCH="${GITHUB_REF_NAME}"
|
||||||
|
curl -X POST \
|
||||||
- name: Add/Commit Validation Trigger File
|
-H "Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}" \
|
||||||
id: commit-readme
|
-H "Content-Type: application/json" \
|
||||||
uses: EndBug/add-and-commit@v9
|
"https://git.trez.wtf/api/v1/repos/Trez/tar-valon-ansible/actions/workflows/gitea_tar-valon_ansible_deploy.yml/dispatches" \
|
||||||
with:
|
-d "{\"ref\":\"${BRANCH}\"}"
|
||||||
add: ".dag-validation-complete"
|
|
||||||
default_author: github_actor
|
|
||||||
message: "chore: mark DAG validation complete"
|
|
||||||
push: true
|
|
||||||
@@ -12,7 +12,6 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- 'main'
|
- 'main'
|
||||||
paths:
|
paths:
|
||||||
- '**/.dagu-validation-complete'
|
|
||||||
- 'app-configs/**'
|
- 'app-configs/**'
|
||||||
- '!app-configs/rikku/homeassistant/**'
|
- '!app-configs/rikku/homeassistant/**'
|
||||||
- '!app-configs/rinoa/dagu/dags/**'
|
- '!app-configs/rinoa/dagu/dags/**'
|
||||||
|
|||||||
Reference in New Issue
Block a user