Skip to content

Commit a3e0165

Browse files
committed
automatically delete old pre-release
1 parent 63cf91b commit a3e0165

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/android.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ jobs:
3030
with:
3131
name: launcher-debug-${{ github.sha }}.apk
3232
path: app/build/outputs/apk/default/debug/app-default-debug.apk
33-
- name: "move pre-release tag"
33+
34+
- name: delete old pre-release
3435
if: github.ref == 'refs/heads/master'
35-
run: |
36-
git config user.name "github-actions[bot]"
37-
git config user.email "github-actions[bot]@users.noreply.github.com"
38-
git tag -f pre-release ${{ github.sha }}
39-
git push -f origin pre-release
36+
run: gh release delete pre-release --cleanup-tag
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4039
- name: create pre-release
4140
if: github.ref == 'refs/heads/master'
4241
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)