diff --git a/.github/workflows/lock-issue.yml b/.github/workflows/lock-issue.yml new file mode 100644 index 00000000..9a394ea9 --- /dev/null +++ b/.github/workflows/lock-issue.yml @@ -0,0 +1,22 @@ +name: Lock issue + +on: + issues: + types: + - closed + - reopened + +jobs: + lock: + name: Lock + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Lock issue + uses: s1204IT/lock-issues@v1.2 + if: github.event.issue.state == 'closed' + id: locked + - name: Unlock issue + uses: s1204IT/unlock-issues@v1.2 + if: steps.locked.outcome != 'success'