Lock #151
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Lock | |
# yamllint disable-line rule:truthy | |
on: | |
schedule: | |
- cron: "0 3 * * *" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
inactivity-lock: | |
name: Lock issues and PRs | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: ⤵️ Check out code from GitHub | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: 🔒 Lock closed issues and PRs | |
id: lock | |
uses: ./ | |
with: | |
days-inactive-issues: 30 | |
days-inactive-prs: 1 | |
lock-reason-issues: "" | |
lock-reason-prs: "" | |
- name: 🔍 Display locked issues and PRs | |
run: | | |
echo "Locked issues: $(echo '${{ steps.lock.outputs.locked-issues }}' | jq)" | |
echo "Locked PRs: $(echo '${{ steps.lock.outputs.locked-prs }}' | jq)" |