-
Notifications
You must be signed in to change notification settings - Fork 890
59 lines (48 loc) · 1.56 KB
/
script-commands.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Set as Executable and Generate Documentation
on:
push:
branches: [master]
jobs:
scriptCommands:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 13.4.1
- name: Setup GIT
uses: raycast/github-actions/[email protected]
- name: Build Toolkit
run: |
make build
- name: Check and adjust scripts
run: |
make set-executable-and-commit
- name: Generate Script Commands Documentation
run: |
make gen-docs-and-commit
- name: Rebase
if: success()
run: git pull origin ${{ github.ref }} --autostash --rebase -X ours
- name: Push
if: success()
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Notify Failure
if: failure()
uses: edge/simple-slack-notify@master
with:
color: "danger"
text: ":no_entry_sign: ${env.GITHUB_WORKFLOW} has failed"
fields: |
[
{ "title": "Action logs:", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}"},
{ "title": "Commit:", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/commit/${ env.GITHUB_SHA }"}
]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_STREAM_INFRA_CHANNEL_WEBHOOK_URL }}