Skip to content

Added automatic build Numbers. Part of #73 #29

Added automatic build Numbers. Part of #73

Added automatic build Numbers. Part of #73 #29

Workflow file for this run

name: build-test
on:
push:
pull_request:
permissions:
contents: read|write

Check failure on line 6 in .github/workflows/build-test.yml

View workflow run for this annotation

GitHub Actions / build-test

Invalid workflow file

The workflow is not valid. .github/workflows/build-test.yml (Line: 6, Col: 13): Unexpected value 'read|write' .github/workflows/build-test.yml (Line: 7, Col: 18): Unexpected value 'read|write'
pull-requests: read|write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Install Nim'
uses: iffy/install-nim@v5
- name: 'Setup Nim'
uses: jiro4989/setup-nim-action@v1
with:
nim-version: '2.x'
- name: 'Build Catnip'
run: nim release
- name: 'Install Figlet'
run: sudo apt-get install figlet
- name: 'Run Tests'
run: cd tests && ./test.sh
- name: 'Add build Number'
run: echo 'const BUILDNUMBER = "${{ github.run_id }}"' > ./src/catniplib/global/buildnum.nim
- name: 'Push build Number'
run: |
git config --global user.name 'iinsertNameHere'
git config --global user.email '[email protected]'
git commit -am "Automatic build Number update"
git push