From edb102cf455fe8b854a9fb9615a0ca25fe0f3aa3 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 22 Nov 2020 04:33:41 +0100 Subject: [PATCH] ci: Run pushed builds on the correct branch --- .github/workflows/refresh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/refresh.yml b/.github/workflows/refresh.yml index 2573c885fa..ac5c49527e 100644 --- a/.github/workflows/refresh.yml +++ b/.github/workflows/refresh.yml @@ -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."