Skip to content

Commit

Permalink
delete expired branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sqin2019 committed Jul 31, 2023
1 parent daf0c8b commit 2082e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/expire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ jobs:
owner: repoOwner,
repo: repoName,
issue_number: pull['number'],
body: `**\`Access on Demand\`** - request closed due to inactivity for at least ${{ inputs.expiry_hours }} hours`,
body: `**\`Access on Demand\`** - request closed and branch deleted due to inactivity for at least ${{ inputs.expiry_hours }} hours`,
});
core.info(`Deleting branch ${pull['head']['ref']}`);
// Delete branch.
await github.rest.git.deleteRef({
Expand Down

0 comments on commit 2082e8a

Please sign in to comment.