CI: update to action to node20 #492
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/setup-git@v1.1.0 | |
- 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 }} |