-
Notifications
You must be signed in to change notification settings - Fork 1.1k
48 lines (42 loc) · 1.24 KB
/
check_cache_values.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
45
46
47
48
name: Cache check
on:
push:
branches: [master]
pull_request:
paths:
- 'local/bin/py/build/configurations/pull_config_preview.yaml'
- 'local/bin/py/build/configurations/pull_config.yaml'
permissions:
contents: read
# Stop the current running job if a new push is made to the PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
check-cache-values:
if: github.ref != 'refs/heads/guacbot/translation-pipeline'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
persist-credentials: false
- name: Find changed files
id: changed_files
uses: tj-actions/changed-files@v42
with:
separator: ','
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10'
- run: pip install pyyaml requests
- name: Check pullconfig
id: cache-values
env:
GH_EVENT: ${{ github.event_name }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_CHECK_CACHE }}
ALL_CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }}
run: |
python local/bin/py/check_cache_values.py \
--files=$ALL_CHANGED_FILES