-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (37 loc) · 1.07 KB
/
print-rollouts.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
---
name: Print rollouts
on:
pull_request:
branches: [main]
paths: ["updates/*.json"]
permissions:
contents: read
# Unprivileged first part; the second is in post-rollouts.yml. Architecture
# and code from
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
jobs:
print-rollouts:
name: Print rollouts
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install python3-dateutil
- name: Print rollouts
run: |
set -euo pipefail
make print-rollouts | tee rollouts
- name: Save state for PR comment
run: |
set -euo pipefail
mkdir validation-results
echo "${{ github.event.number }}" > validation-results/PR
mv rollouts validation-results/
- name: Upload state for PR comment
uses: actions/upload-artifact@v3
with:
name: validation-results
path: validation-results/