We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc4a509 + 25c9d0d commit 7e1b541Copy full SHA for 7e1b541
.github/workflows/gradle-build.yml
@@ -7,6 +7,9 @@ on:
7
branches: [main, support/5.x.x]
8
workflow_dispatch:
9
10
+permissions:
11
+ contents: read
12
+
13
jobs:
14
build:
15
runs-on: ubuntu-latest
@@ -67,12 +70,16 @@ jobs:
67
70
with:
68
71
name: drop
69
72
path: artifacts/current/
73
+ - name: Get latest release tag
74
+ env:
75
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76
+ run: echo "BRANCH=$(gh release list -L 1 --json tagName --jq '.[0] | .tagName')" >> $GITHUB_ENV
77
- name: Download Last Successful Build
78
uses: dawidd6/action-download-artifact@v3.1.4
79
80
workflow: preview-and-release.yml
81
workflow_conclusion: success
- branch: dev
82
+ branch: ${{ env.BRANCH }}
83
event: push
84
85
path: artifacts/previous/
0 commit comments