-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (41 loc) · 995 Bytes
/
pr.yaml
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
45
name: prs
on:
push:
branches:
- "pull-request/[0-9]+"
permissions:
id-token: write
contents: read
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
fmt:
runs-on: ubuntu-latest
container:
image: hashicorp/packer:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Packer files formatting
run: packer fmt -check -recursive .
shellcheck:
runs-on: ubuntu-latest
container:
image: koalaman/shellcheck-alpine:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run shellcheck on shell scripts
run: find . -name "*.sh" | xargs -n 1 shellcheck --color=always
gc:
uses: ./.github/workflows/gc.yaml
with:
dry_run: true
secrets: inherit
build:
uses: ./.github/workflows/build.yaml
with:
upload_artifacts: false
branch_name: ${{ github.ref_name }}
secrets: inherit