forked from doctrine/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 75
39 lines (31 loc) · 1.02 KB
/
archive-validation.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
name: Git Archive Content Check
on:
pull_request:
branches:
- master
paths:
- .github/workflows/archive-validation.yml
- .ci/github/archive_allow.txt
- ./*
push:
branches:
- master
paths:
- .github/workflows/archive-validation.yml
- .ci/github/archive_allow.txt
- ./*
jobs:
archive-validation:
name: Git Archive Content Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: number-of-changed-files
run: |
echo "NO_OF_FILES_CHANGED_IN_ROOT=$(.ci/github/files_between_commits.sh $GITHUB_BASE_REF $GITHUB_SHA | .ci/github/number_of_files_changed_in_root.sh)" >> $GITHUB_ENV
- run: echo $NO_OF_FILES_CHANGED_IN_ROOT
- run: echo $GITHUB_BASE_REF
- run: echo $GITHUB_HEAD_REF
# - run: |
# git archive -o archive.tar $GITHUB_SHA && sh .ci/github/validate_archive.sh archive.tar
# if: ${{ steps.number-of-changed-files.outputs.no_of_changed_files_in_root > 0 }}