-
Notifications
You must be signed in to change notification settings - Fork 290
45 lines (37 loc) · 1.08 KB
/
wolfictl-check-update.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: Wolfictl Check Updates
on:
pull_request:
branches:
- 'main'
push:
branches:
- gh-readonly-queue/main/**
permissions:
contents: read
jobs:
lint:
name: Wolfictl Check Updates
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Get changed files
id: files
uses: tj-actions/changed-files@cc733854b1f224978ef800d29e4709d5ee2883e4 # v44.5.5
with:
separator: ' '
files: "*.yaml"
files_ignore: ".yam.yaml"
- name: Check
id: check
# this need to point to main to always get the latest action
uses: wolfi-dev/actions/wolfictl-check-updates@main # main
if: ${{ steps.files.outputs.all_changed_files != '' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
changed_files: ${{ steps.files.outputs.all_changed_files }}