Fixed updating version file via CI
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -8,6 +8,8 @@ on:
|
||||
tags-ignore:
|
||||
- 'v0*'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
@@ -22,7 +24,7 @@ jobs:
|
||||
- name: Update Version File
|
||||
uses: ArabCoders/write-version-to-file@master
|
||||
with:
|
||||
filename: '${RUNNER_WORKSPACE}/.version'
|
||||
filename: '/.version'
|
||||
placeholder: '${VERSION}'
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
@@ -57,7 +59,7 @@ jobs:
|
||||
- name: Update Version File
|
||||
uses: ArabCoders/write-version-to-file@master
|
||||
with:
|
||||
filename: '${RUNNER_WORKSPACE}/.version'
|
||||
filename: '/.version'
|
||||
placeholder: '${VERSION}'
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
@@ -69,6 +71,7 @@ jobs:
|
||||
type=raw,value=dev-latest,enable=${{ endsWith(github.ref, '/dev') }}
|
||||
type=ref,event=tag
|
||||
type=sha,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||
type=ref,enable=true,priority=600,prefix=pr-,suffix=,event=pr
|
||||
flavor: |
|
||||
latest=false
|
||||
- name: Login to DockerHub
|
||||
|
||||
Reference in New Issue
Block a user