Skip to content

Commit a416dac

Browse files
authored
Merge branch 'main' into v1.0/pipelinebuild/150887
2 parents 6a3a978 + 53d5fdd commit a416dac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/gradle-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,16 @@ jobs:
6767
with:
6868
name: drop
6969
path: artifacts/current/
70+
- name: Get latest release tag
71+
env:
72+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
run: echo "BRANCH=$(gh release list -L 1 --json tagName --jq '.[0] | .tagName')" >> $GITHUB_ENV
7074
- name: Download Last Successful Build
7175
uses: dawidd6/[email protected]
7276
with:
7377
workflow: preview-and-release.yml
7478
workflow_conclusion: success
75-
branch: main
79+
branch: ${{ env.BRANCH }}
7680
event: push
7781
name: drop
7882
path: artifacts/previous/

0 commit comments

Comments
 (0)