Fixed updating version file via CI

This commit is contained in:
Abdulmhsen B. A. A
2022-05-14 19:19:56 +03:00
parent a1bd322716
commit 63b7a1ecbc

View File

@@ -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