From 63b7a1ecbc3ac0c041f7cc669301d4583bb47cd6 Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A" Date: Sat, 14 May 2022 19:19:56 +0300 Subject: [PATCH] Fixed updating version file via CI --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8570edbe..47c961af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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