We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f470cbd commit ff5cb45Copy full SHA for ff5cb45
.github/workflows/gradle-build.yml
@@ -67,12 +67,16 @@ jobs:
67
with:
68
name: drop
69
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
74
- name: Download Last Successful Build
75
uses: dawidd6/[email protected]
76
77
workflow: preview-and-release.yml
78
workflow_conclusion: success
- branch: main
79
+ branch: ${{ env.BRANCH }}
80
event: push
81
82
path: artifacts/previous/
0 commit comments