Add workflow version to force PostgreSQL rebuild (#19)
authorAdrian Grucza <46910040+apgrucza@users.noreply.github.com>
Tue, 14 May 2024 12:11:11 +0000 (22:11 +1000)
committerGitHub <noreply@github.com>
Tue, 14 May 2024 12:11:11 +0000 (08:11 -0400)
.github/workflows/main.yml

index 830207b2f5bbd80e517d86204664216bc418476f..fb86e71d81c01b1b9fb3e7b3684f07054c1385d6 100644 (file)
@@ -18,6 +18,10 @@ env:
   # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
   BUILD_CONFIGURATION: Release
 
+  # Workflow versions. Increment these when you make changes to a build step in the workflow and
+  # you want the step to run, but the corresponding cache is causing the step to be skipped.
+  WORKFLOW_VERSION_POSTGRESQL: '1' # for build steps related to the 'cachePostgres' cache
+
   # Software versions. 
   POSTGRESQL_SOURCE_TAG: 'REL_16_3'
   POSTGRESQL_PACKAGE_FILEID: '1259019'
@@ -41,7 +45,7 @@ jobs:
         path: |
           d:\postgresql
           d:\postgresql86
-        key: postgresql-${{env.POSTGRESQL_SOURCE_TAG}}_openssl-${{env.OPENSSL_VERSION}}_pkgconfiglite-${{env.PKGCONFIGLITE_VERSION}}_winflexbison-${{env.WINFLEXBISON_VERSION}}
+        key: postgresql-${{env.POSTGRESQL_SOURCE_TAG}}_openssl-${{env.OPENSSL_VERSION}}_pkgconfiglite-${{env.PKGCONFIGLITE_VERSION}}_winflexbison-${{env.WINFLEXBISON_VERSION}}_workflow-${{env.WORKFLOW_VERSION}}
 
     - name: Cache Postgres source
       if: ${{steps.cachePostgres.outputs.cache-hit != 'true'}}