Skip to content

Commit f5013ad

Browse files
Publish only non-RC releases (#594)
1 parent 05d5c04 commit f5013ad

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/trigger-publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
trigger:
10+
if: ${{ ! contains(github.ref, '-rc.') }}
1011
name: 'trigger Docker image build'
1112
runs-on: ubuntu-latest
1213

@@ -15,11 +16,6 @@ jobs:
1516
shell: bash
1617

1718
steps:
18-
- name: Get git branch name
19-
id: get_branch
20-
run: |
21-
echo branch="${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
22-
2319
- name: Generate a token
2420
id: generate_token
2521
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
@@ -34,7 +30,7 @@ jobs:
3430
PARENT_BRANCH: ${{ toJSON('main') }}
3531
WORKFLOW_ID: update-submodules.yml
3632
REPO: ${{ toJSON('cli') }}
37-
BRANCH: ${{ toJSON(steps.get_branch.outputs.branch) }}
33+
BRANCH: ${{ toJSON('main') }}
3834
COMMIT: ${{ toJSON(github.sha) }}
3935
run: |
4036
curl -fL -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $PAT" "https://api.github.com/repos/$PARENT_REPO/actions/workflows/$WORKFLOW_ID/dispatches" -d '{"ref":'"$PARENT_BRANCH"', "inputs": { "repo":'"$REPO"', "branch":'"$BRANCH"', "commit": '"$COMMIT"' }}'

0 commit comments

Comments
 (0)