Skip to content

Update action internals and bump major #36

Update action internals and bump major

Update action internals and bump major #36

Workflow file for this run

name: Build
on:
push:
branches:
- "*"
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Ontrack setup
# Don't run this step on forks
if: github.repository_owner == 'nemerosa'
uses: nemerosa/ontrack-github-actions-cli-setup@main
id: ontrack
with:
version: 0.1.18
url: https://ontrack.nemerosa.net
token: ${{ secrets.ONTRACK_TOKEN }}
config: github.com
indexation: 120
- name: Ontrack validations
# Don't run this step on forks
if: github.repository_owner == 'nemerosa'
run: |
ontrack-cli vs setup generic --project ${{ steps.ontrack.outputs.project }} --branch ${{ steps.ontrack.outputs.branch }} --validation BUILD
- name: Ontrack build
# Don't run this step on forks
if: github.repository_owner == 'nemerosa'
run: |
ontrack-cli build setup --project ${{ steps.ontrack.outputs.project }} --branch ${{ steps.ontrack.outputs.branch }} --build ${{ github.run_number }}
ontrack-cli build set-property --project ${{ steps.ontrack.outputs.project }} --branch ${{ steps.ontrack.outputs.branch }} --build ${{ github.run_number }} git-commit --commit ${{ github.sha }}
- name: Build
run: npm install
- name: Build validation
if: ${{ always() }}
uses: ./
with:
# logging: true
token: ${{ github.token }}
step-name: Build
validation: BUILD
build: ${{ github.run_number }}