From c6b2540656661d812052c5a731bc890fa84ebc8b Mon Sep 17 00:00:00 2001 From: gapuchi Date: Tue, 4 Jun 2024 13:29:21 -0400 Subject: [PATCH] Add Remove Older Release in Workflow --- .github/workflows/pdf.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml index 4808553..0cbb5b7 100644 --- a/.github/workflows/pdf.yml +++ b/.github/workflows/pdf.yml @@ -40,4 +40,10 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: result/resume.pdf asset_name: resume.pdf - asset_content_type: application/pdf \ No newline at end of file + asset_content_type: application/pdf + + - name: Remove Older Releases + uses: wow-actions/delete-stale-releases@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + keep_latest_count: 1