generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.06 KB
/
development-freeze.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Development Freeze
on:
workflow_run:
workflows: [ Gather Pull Request Metadata ]
types:
- completed
permissions:
contents: read
jobs:
freezer:
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
permissions:
# Needed for commenting on Pull Requests
pull-requests: write
steps:
- id: Artifact
name: Download Pull Request Metadata artifact
uses: redhat-plumbers-in-action/download-artifact@v1
with:
name: Pull Request Metadata
- name: Repository checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Development Freezer
uses: redhat-plumbers-in-action/devel-freezer@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Development Freezer
uses: ./
with:
pr-number: ${{ fromJSON(steps.Artifact.outputs.pr-metadata-json).number }}
token: ${{ secrets.GITHUB_TOKEN }}