Skip to content

Commit ad917d2

Browse files
authored
DaprBot pushing tag or to branch already triggers build. (#1238)
Signed-off-by: Artur Souza <[email protected]>
1 parent ed95fee commit ad917d2

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.github/workflows/create-release.yml

+1-19
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,4 @@ jobs:
5353
git remote set-url origin https://x-access-token:${{ secrets.DAPR_BOT_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
5454
# Copy first to allow automation to use the latest version and not the release branch's version.
5555
cp -R ./.github/scripts ${RUNNER_TEMP}/
56-
${RUNNER_TEMP}/scripts/create-release.sh ${{ inputs.rel_version }}
57-
trigger:
58-
name: Triggers the Dapr SDK build
59-
runs-on: ubuntu-latest
60-
needs: create-release
61-
steps:
62-
- name: Identify build ref to trigger build and release.
63-
run: |
64-
if [[ "${{ inputs.rel_version }}" == *"SNAPSHOT"* ]]; then
65-
echo "BUILD_GIT_REF=master" >> $GITHUB_ENV
66-
else
67-
echo "BUILD_GIT_REF=v${{ inputs.rel_version }}" >> $GITHUB_ENV
68-
fi
69-
- name: Triggers the build and release.
70-
if: env.BUILD_GIT_REF != 'master'
71-
env:
72-
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
73-
run: |
74-
gh workflow run build.yml --repo ${GITHUB_REPOSITORY} --ref '${{ env.BUILD_GIT_REF }}'
56+
${RUNNER_TEMP}/scripts/create-release.sh ${{ inputs.rel_version }}

0 commit comments

Comments
 (0)