feat: update delete release assets action to use new delete-tag action
Some checks failed
Build LaTeX Document / build_latex (push) Failing after 2m2s
Some checks failed
Build LaTeX Document / build_latex (push) Failing after 2m2s
This commit is contained in:
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@@ -38,13 +38,14 @@ jobs:
|
|||||||
- name: Check for PDF artifact
|
- name: Check for PDF artifact
|
||||||
run: file ${{ env.PDF_NAME }} || grep -q ' PDF '
|
run: file ${{ env.PDF_NAME }} || grep -q ' PDF '
|
||||||
|
|
||||||
- name: Delete old release assets
|
- name: Execute Delete Release/Tag action
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
uses: ShivamHS/delete-tag@v1
|
||||||
uses: mknejp/delete-release-assets@v1
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
token: ${{ secrets.RELEASE_TOKEN }} #generate new PAT and give delete access to it
|
||||||
tag: latest
|
repo: ${{ github.repository }}
|
||||||
assets: ${{ env.PDF_NAME }}
|
owner: kobim
|
||||||
|
keyword: latest
|
||||||
|
deletetype: "tr"
|
||||||
|
|
||||||
- name: Release PDF artifact
|
- name: Release PDF artifact
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
Reference in New Issue
Block a user