Skip to content

build(gha): fix syntax error in artifact flow #107

build(gha): fix syntax error in artifact flow

build(gha): fix syntax error in artifact flow #107

Workflow file for this run

name: '⚙️ On push'
on:
push:
branches:
- alpha
- beta
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: ./.github/actions/build
id: build
with:
php-scoper-version: ${{ vars.PHP_SCOPER_VERSION }}
- name: 'Determine version'
id: version
#language=sh
run: |
version=$(npm pkg get version | sed 's/"//g')
commitsSinceTag=$(git log --oneline v$version.. | wc -l)
releaseVersion="$version-$commitsSinceTag"
echo "version=$releaseVersion" >> $GITHUB_OUTPUT
- uses: ./.github/actions/release
id: release
with:
version: ${{ steps.version.outputs.version }}
image: ${{ steps.build.outputs.image }}
rebase-prs:
needs:
- test
- build
uses: ./.github/workflows/rebase-prs.yml
secrets: inherit