Commit 84b7d36
committed
Use GH CLI, check for existing trailers and clean up code
Use GH CLI in place of manual CURL calls, add check for existing
trailers and clean up code logic:
- Use GH CLI to fetch and parse PR information
- Use `action/checkout` to checkout the PR branch and add `token` input
to properly handle checkout access permissions
- Add step to check if trailers exist and avoid re-adding existing
trailers. Add inputs to control if the action will only check for the
existence of required trailers and, optionally, fail if the trailers
do not exist.
- Clean up steps, variable names and use `GITHUB_OUTPUT` instead of
`GITHUB_ENV` where it makes sense
Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com>1 parent 19ab918 commit 84b7d36
4 files changed
Lines changed: 274 additions & 205 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 27 | + | |
| 28 | + | |
37 | 29 | | |
38 | 30 | | |
39 | | - | |
40 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments