Added some more error checking #54
Workflow file for this run
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: "Compile scripts" | |
on: | |
pull_request: | |
branches: | |
- "master" | |
release: | |
branches: | |
- "master" | |
types: | |
- created | |
push: | |
branches: | |
- master | |
jobs: | |
compile_scripts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Cancel previous runs on same branch" | |
uses: rokroskar/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
# - name: "Read commit args" | |
# id: args | |
# uses: LamaAni/parse-commit-args-action@master | |
# - name: "show args" | |
# run: echo "$THE_ARGS" | |
# env: | |
# THE_ARGS: "${{ toJSON(steps.args.outputs) }}" | |
- name: "Checkout the code" | |
uses: actions/checkout@v2 | |
- name: "Compile the code" | |
id: compile | |
run: bash src/compile >| zbash_config.sh && chmod +x zbash_config.sh | |
- name: "Release: Upload files" | |
if: github.event_name == 'release' | |
uses: AButler/[email protected] | |
with: | |
files: "zbash_config.sh" | |
release-tag: "${{steps.args.outputs.version}}" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |