Skip to content

Commit ab2fe11

Browse files
authored
Add workflow version to force PostgreSQL rebuild (#19)
1 parent d17def7 commit ab2fe11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ env:
1818
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
1919
BUILD_CONFIGURATION: Release
2020

21+
# Workflow versions. Increment these when you make changes to a build step in the workflow and
22+
# you want the step to run, but the corresponding cache is causing the step to be skipped.
23+
WORKFLOW_VERSION_POSTGRESQL: '1' # for build steps related to the 'cachePostgres' cache
24+
2125
# Software versions.
2226
POSTGRESQL_SOURCE_TAG: 'REL_16_3'
2327
POSTGRESQL_PACKAGE_FILEID: '1259019'
@@ -41,7 +45,7 @@ jobs:
4145
path: |
4246
d:\postgresql
4347
d:\postgresql86
44-
key: postgresql-${{env.POSTGRESQL_SOURCE_TAG}}_openssl-${{env.OPENSSL_VERSION}}_pkgconfiglite-${{env.PKGCONFIGLITE_VERSION}}_winflexbison-${{env.WINFLEXBISON_VERSION}}
48+
key: postgresql-${{env.POSTGRESQL_SOURCE_TAG}}_openssl-${{env.OPENSSL_VERSION}}_pkgconfiglite-${{env.PKGCONFIGLITE_VERSION}}_winflexbison-${{env.WINFLEXBISON_VERSION}}_workflow-${{env.WORKFLOW_VERSION}}
4549

4650
- name: Cache Postgres source
4751
if: ${{steps.cachePostgres.outputs.cache-hit != 'true'}}

0 commit comments

Comments
 (0)