Skip to content

Commit

Permalink
Fix default archive commands for PRs (#10)
Browse files Browse the repository at this point in the history
Fix invalid use of `github.ref_name` which points to `main` and not the
pull request branch on `delete` events. We now correctly set the label
as `github.event.ref_name` which points to the branch.
  • Loading branch information
emcfarlane authored Jun 5, 2024
1 parent 05b9656 commit d52db49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,6 @@ jobs:
breaking: false
push: false
archive: true
# On push github.ref_name, on delete github.event.ref_name.
archive_labels: ${{ github.ref_name }}
comment: false
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ inputs:
label2
required: false
default: |
${{ github.ref_name }}
${{ github.event.ref_name }}
runs:
using: "node20"
Expand Down

0 comments on commit d52db49

Please sign in to comment.