-
Notifications
You must be signed in to change notification settings - Fork 514
39 lines (37 loc) · 1.3 KB
/
validate.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: Validate
on: [pull_request_target]
jobs:
validate_images:
name: Images
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.number }}/merge
- name: Validate images
uses: LabyMod/server-media/.github/actions/validate@master
validate_manifest:
name: Manifest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.number }}/merge
- name: Get changed files
#uses: lots0logs/[email protected]
uses: Raik0707/gh-action-get-changed-files@feature/support-pr-target-event # Remove as soon as PR is merged
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Add json
run:
cp ${HOME}/files.json ./
- name: Validate manifest
uses: LabyMod/server-media/.github/actions/validate-manifest@master
env:
PR_ID: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
COMMIT_URL: ${{ github.event.pull_request.head.repo.commits_url }}
PR_ACTION: ${{ github.event.action }}