Skip to content

Commit

Permalink
Publish only non-RC releases (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
antlai-temporal committed Jun 12, 2024
1 parent 05d5c04 commit f5013ad
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/trigger-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
trigger:
if: ${{ ! contains(github.ref, '-rc.') }}
name: 'trigger Docker image build'
runs-on: ubuntu-latest

Expand All @@ -15,11 +16,6 @@ jobs:
shell: bash

steps:
- name: Get git branch name
id: get_branch
run: |
echo branch="${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
Expand All @@ -34,7 +30,7 @@ jobs:
PARENT_BRANCH: ${{ toJSON('main') }}
WORKFLOW_ID: update-submodules.yml
REPO: ${{ toJSON('cli') }}
BRANCH: ${{ toJSON(steps.get_branch.outputs.branch) }}
BRANCH: ${{ toJSON('main') }}
COMMIT: ${{ toJSON(github.sha) }}
run: |
curl -fL -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $PAT" "https://github.com/gitapi/repos/$PARENT_REPO/actions/workflows/$WORKFLOW_ID/dispatches" -d '{"ref":'"$PARENT_BRANCH"', "inputs": { "repo":'"$REPO"', "branch":'"$BRANCH"', "commit": '"$COMMIT"' }}'

0 comments on commit f5013ad

Please sign in to comment.