Skip to content

Lock

Lock #151

Workflow file for this run

---
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)"