GH CD: seems that reusable workflow outputs can't make their way through.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sun, 14 Aug 2022 15:11:20 +0200
changeset 96 52b64ebc1970
parent 95 21dcb1a70f5d
child 97 4dd65c75e651
GH CD: seems that reusable workflow outputs can't make their way through.
.github/workflows/build_bundles.yml
.github/workflows/prep_sources.yml
--- a/.github/workflows/build_bundles.yml	Sat Aug 13 23:19:14 2022 +0200
+++ b/.github/workflows/build_bundles.yml	Sun Aug 14 15:11:20 2022 +0200
@@ -55,11 +55,11 @@
         cd beremiz_public_dist
         # override HG revision IDs in Makefile
         ./build_in_docker.sh \
-            beremiz_revisionid=${{ needs.sources.outputs.beremiz_revisionid }} \
-            matiec_revisionid=${{ needs.sources.outputs.matiec_revisionid }} \
-            canfestival_revisionid=${{ needs.sources.outputs.canfestival_revisionid }} \
-            Modbus_revisionid=${{ needs.sources.outputs.Modbus_revisionid }} \
-            open62541_revisionid=${{ needs.sources.outputs.open62541_revisionid }}
+            beremiz_revisionid=stamp \
+            matiec_revisionid=stamp \
+            canfestival_revisionid=stamp \
+            Modbus_revisionid=stamp \
+            open62541_revisionid=stamp
 
     - name: Upload built artifact
       uses: actions/upload-artifact@v3
--- a/.github/workflows/prep_sources.yml	Sat Aug 13 23:19:14 2022 +0200
+++ b/.github/workflows/prep_sources.yml	Sun Aug 14 15:11:20 2022 +0200
@@ -2,17 +2,7 @@
 
 on:
   workflow_call:
-    outputs:
-      beremiz_revisionid:
-        value: ${{ jobs.get_sources.env.beremiz_revisionid }}
-      matiec_revisionid:
-        value: ${{ jobs.get_sources.env.matiec_revisionid }}
-      canfestival_revisionid:
-        value: ${{ jobs.get_sources.env.canfestival_revisionid }}
-      Modbus_revisionid:
-        value: ${{ jobs.get_sources.env.Modbus_revisionid }}
-      open62541_revisionid:
-        value: ${{ jobs.get_sources.env.opem62541_revisionid }}
+
 
 jobs:
   get_sources:
@@ -58,13 +48,13 @@
           ref: ${{ env.open62541_revisionid }}
           path: build/sources/open62541
 
-    - name: Touch expected Makfile targets to shortcut HG checkout
+    - name: Keep Makfile satisfied and generate revisions.txt
       run: |
-        touch build/sources/beremiz_${{ env.beremiz_revisionid }}
-        touch build/sources/matiec_${{ env.matiec_revisionid }}
-        touch build/sources/canfestival_${{ env.canfestival_revisionid }}
-        touch build/sources/Modbus_${{ env.Modbus_revisionid }}
-        touch build/sources/open62541_${{ env.open62541_revisionid }}
+        touch build/sources/beremiz_stamp
+        touch build/sources/matiec_stamp
+        touch build/sources/canfestival_stamp
+        touch build/sources/Modbus_stamp
+        touch build/sources/open62541_stamp
         touch build/sources/beremiz_src
         touch build/sources/matiec_src
         touch build/sources/canfestival_src