Skip to content

Commit

Permalink
Prevent old release rotation from deleting current and update delete-…
Browse files Browse the repository at this point in the history
…older-releases package (#595)
  • Loading branch information
dwdozier authored Apr 11, 2024
1 parent dadc282 commit 1a95949
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Create tag name
shell: bash
run: |
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
body: |
Nightly pre-release build of `${{ github.ref_name }}` on ${{ env.DATE }}.
This build is for development purposes and not intended for production use.
outputs:
releaseId: ${{ steps.release.outputs.id }}
releaseUploadUrl: ${{ steps.release.outputs.upload_url }}
Expand All @@ -69,7 +69,7 @@ jobs:
packageVersion: ${{ needs.create-release.outputs.cargoPackageVersion }}
debRevision: ${{ needs.create-release.outputs.tagName }}
rpmSnapshot: ${{ github.sha }}
rustFlags: '-C debuginfo=2 -C strip=none'
rustFlags: '-C debuginfo=2 -C strip=none'

test-release:
name: Test Release
Expand Down Expand Up @@ -103,9 +103,10 @@ jobs:
commit: ${{ github.sha }}

# rotate out old nightly releases
- uses: dev-drprasad/delete-older-releases@v0.2.0
- uses: dev-drprasad/delete-older-releases@v0.3.3
with:
keep_latest: 2
delete_expired_data: 3
delete_tag_pattern: nightly
delete_tags: true
env:
Expand Down

0 comments on commit 1a95949

Please sign in to comment.