-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (43 loc) · 1.13 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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