forked from compose-spec/compose-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (21 loc) · 988 Bytes
/
compose-spec-change.yml
File metadata and controls
25 lines (21 loc) · 988 Bytes
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
name: Detect change on compose-spec
on:
workflow_dispatch:
pull_request:
jobs:
changed_files:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Get compose-spec.json has changed
id: changed-compose-spec-file
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
with:
files: schema/compose-spec.json
- name: Validate compose-spec has not changed
if: ${{ steps.changed-compose-spec-file.outputs.any_changed == 'true' && contains(github.actor, '[bot]') == 'false' }}
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
script: |
core.setFailed('Please do not change compose-spec.json in this repo. Please make the desired changes in https://github.com/compose-spec/compose-go and validate the changes by adding an e2e test.')