Skip to content

Commit

Permalink
Triggers build automatically once a release tag is created. (dapr#7535)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
  • Loading branch information
artursouza authored Feb 14, 2024
1 parent c3baea5 commit 518753d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ jobs:
git config user.name "Dapr Bot"
# Update origin with token
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
./.github/scripts/create-release.sh ${{ inputs.rel_version }}
./.github/scripts/create-release.sh ${{ inputs.rel_version }}
trigger:
name: Triggers the Dapr runtime build
runs-on: ubuntu-latest
needs: create-release
steps:
- name: Triggers the build
env:
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
run: |
gh workflow run dapr.yml --repo dapr/dapr --ref v$(echo '${{ inputs.rel_version }}' | sed -r 's/^[vV]?([0-9].+)$/\1/')

0 comments on commit 518753d

Please sign in to comment.