Skip to content

Commit

Permalink
actions: provide branch when dispatching
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea authored Jul 23, 2024
1 parent a0ada09 commit 32c10a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ 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/[email protected]
with:
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}}"}'

0 comments on commit 32c10a5

Please sign in to comment.