-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (43 loc) · 1.31 KB
/
validate-judging-repo.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
name: validate-judging-repo
run-name: validate-judging-repo
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
validate-changes:
if: "!contains(github.event.commits[0].message, 'Initial commit')"
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- uses: jitterbit/get-changed-files@v1
id: changes
with:
format: space-delimited
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Validate changes
run: >
ADDED_FILES="${{ steps.changes.outputs.added }}"
MODIFIED_FILES="${{ steps.changes.outputs.modified }}"
RENAMED_FILES="${{ steps.changes.outputs.renamed }}"
REMOVED_FILES="${{ steps.changes.outputs.removed }}"
python .data/validate_changes.py
validate-filesystem:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Validate filesystem structure
run: >
TOTAL_ISSUES="${{ secrets.TOTAL_ISSUES }}"
python .data/validate_filesystem.py