forked from ember-redux/ember-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1.4 KB
/
misc.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
"jobs":
"verify-jsonnet-gh-actions":
"container":
"credentials":
"password": "${{ secrets.docker_gcr_io }}"
"username": "_json_key"
"image": "eu.gcr.io/unicorn-985/docker-images_jsonnet:v1"
"runs-on": "ubuntu-latest"
"steps":
- "name": "Check out repository code"
"uses": "actions/checkout@v4"
"with":
"ref": "${{ github.event.pull_request.head.sha }}"
- "name": "git safe directory"
"run": "command -v git && git config --global --add safe.directory '*' || true"
- "name": "remove-workflows"
"run": "rm -f .github/workflows/*"
- "name": "generate-workflows"
"run": "jsonnet -m .github/workflows/ -S .github.jsonnet;"
- "name": "git workaround"
"run": "git config --global --add safe.directory $PWD"
- "name": "check-jsonnet-diff"
"run": "git diff --exit-code"
- "if": "failure()"
"name": "possible-causes-for-error"
"run": "echo \"Possible causes: \n1. You updated jsonnet files, but did not regenerate the workflows. \nTo fix, run 'yarn github:generate' locally and commit the changes. If this helps, check if your pre-commit hooks work.\n2. You used the wrong jsonnet binary. In this case, the newlines at the end of the files differ.\nTo fix, install the go binary. On mac, run 'brew uninstall jsonnet && brew install jsonnet-go'\""
"timeout-minutes": 30
"name": "misc"
"on":
- "pull_request"