ci: Run pushed builds on the correct branch
This commit is contained in:
@@ -70,7 +70,7 @@ jobs:
|
|||||||
-X POST \
|
-X POST \
|
||||||
-H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-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"
|
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/build.yml/dispatches"
|
||||||
else
|
else
|
||||||
echo "Branch '${d}' is up to date."
|
echo "Branch '${d}' is up to date."
|
||||||
|
|||||||
Reference in New Issue
Block a user