ci: Run pushed builds on the correct branch

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2020-11-22 04:33:41 +01:00
parent 97a2ea1135
commit edb102cf45
+1 -1
View File
@@ -70,7 +70,7 @@ jobs:
-X POST \
-H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d "{\"ref\":\"automation\",\"inputs\":{\"ref\":\"${d}\"}}" \
-d "{\"ref\":\"${{ github.ref }}\",\"inputs\":{\"ref\":\"${d}\"}}" \
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/build.yml/dispatches"
else
echo "Branch '${d}' is up to date."