Skip to content

Commit

Permalink
run repository dispatch only once
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir20 committed Jul 22, 2024
1 parent 037a781 commit 9e26a39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
run: echo "branch=$(echo "${GITHUB_REF#refs/heads/}")" >> $GITHUB_OUTPUT
id: extract_branch
- uses: google-github-actions/release-please-action@v3
id: release_action
with:
token: ${{ secrets.PAT }}
pull-request-title-pattern: "chore: prerelease ${version}"
Expand Down Expand Up @@ -58,6 +59,8 @@ jobs:
id: extract_version
- name: Trigger dispatch event
uses: peter-evans/repository-dispatch@v3
# release please run 2 times, first for creating the PR and second for creating the release
if: ${{ steps.release_action.outputs.release_created == 'true' }}
with:
token: "${{ secrets.PAT }}"
repository: rudderlabs/rudder-devops
Expand Down

0 comments on commit 9e26a39

Please sign in to comment.