2022-10-12 13:37:00 +00:00
|
|
|
# doc: https://github.com/redhat-plumbers-in-action/devel-freezer#readme
|
|
|
|
---
|
|
|
|
|
|
|
|
name: Development Freeze
|
|
|
|
on:
|
2023-02-03 09:25:51 +00:00
|
|
|
workflow_run:
|
|
|
|
workflows: [ Gather Pull Request Metadata ]
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
|
2022-10-12 13:37:00 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
freezer:
|
2023-02-03 09:25:51 +00:00
|
|
|
if: >
|
|
|
|
github.event.workflow_run.event == 'pull_request' &&
|
|
|
|
github.event.workflow_run.conclusion == 'success' &&
|
|
|
|
github.repository == 'systemd/systemd'
|
2022-10-12 13:37:00 +00:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
steps:
|
2024-03-20 09:32:07 +00:00
|
|
|
- id: artifact
|
|
|
|
name: Download Pull Request Metadata artifact
|
|
|
|
uses: redhat-plumbers-in-action/download-artifact@463ae626ac2dd333491c7beccaa24c12c5c259b8
|
2023-02-03 09:25:51 +00:00
|
|
|
with:
|
2024-03-20 09:32:07 +00:00
|
|
|
name: Pull Request Metadata
|
2023-02-03 09:25:51 +00:00
|
|
|
|
|
|
|
- name: Repository checkout
|
2024-03-13 16:48:43 +00:00
|
|
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
2022-10-12 13:37:00 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Development Freezer
|
2023-12-01 09:03:54 +00:00
|
|
|
uses: redhat-plumbers-in-action/devel-freezer@67aec4a153bd9fca5322e1c4dd4d7c419fb36362
|
2022-10-12 13:37:00 +00:00
|
|
|
with:
|
2024-03-20 09:32:07 +00:00
|
|
|
pr-number: ${{ fromJSON(steps.artifact.outputs.pr-metadata-json).number }}
|
2022-10-12 13:37:00 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|