From 32c10a5109635b56b97a9414de53517074eea920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C4=83zvan=20Crainea?= Date: Tue, 23 Jul 2024 14:09:04 +0300 Subject: [PATCH] actions: provide branch when dispatching --- .github/workflows/docker-trigger.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-trigger.yml b/.github/workflows/docker-trigger.yml index 776de44c..f44cc8fa 100644 --- a/.github/workflows/docker-trigger.yml +++ b/.github/workflows/docker-trigger.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Set docker-tag variable - run: BRANCH="${GITHUB_REF#refs/heads/}"; echo "DOCKER_TAG=${BRANCH//master/latest}" >> $GITHUB_ENV + run: BRANCH="${GITHUB_REF#refs/heads/}"; echo -e "BRANCH=$BRANCH\nDOCKER_TAG=${BRANCH//master/latest}" >> $GITHUB_ENV - name: Repository Dispatch uses: myrotvorets/trigger-repository-dispatch-action@1.1.0 @@ -21,4 +21,4 @@ jobs: token: ${{ secrets.DOCKER_OPENSIPS_CLI_PAT }} repo: OpenSIPS/docker-opensips-cp type: OpenSIPS CP trigger - payload: '{"docker_tag": "${{ env.DOCKER_TAG }}"}' + payload: '{"docker_tag": "${{ env.DOCKER_TAG }}", "branch": "${{ env.BRANCH}}"}'