revisions.txt is expected in $CWD When building Windows installer, in $CWD/sources for Snap. Deal with it for now.
--- a/.github/workflows/build_snap.yml Sun Aug 14 16:54:43 2022 +0200
+++ b/.github/workflows/build_snap.yml Sun Aug 14 19:15:04 2022 +0200
@@ -28,11 +28,10 @@
- name: untar files
run: tar -xvf build.tar
- - name: Move snap dir in build/sources
+ - name: Move snap dir and revisions.txt in build/sources
run: |
- ls -R
mv beremiz_public_dist/snap build/sources
- ls build/sources
+ mv build/revisions.txt build/sources/revisions.txt
- name: Invoke snapcraft build
uses: snapcore/action-build@v1
--- a/.github/workflows/prep_sources.yml Sun Aug 14 16:54:43 2022 +0200
+++ b/.github/workflows/prep_sources.yml Sun Aug 14 19:15:04 2022 +0200
@@ -61,7 +61,7 @@
touch build/sources/Modbus_src
touch build/sources/open62541_src
touch build/own_sources
- cat >> build/sources/revisions.txt <<EOF
+ cat >> build/revisions.txt <<EOF
beremiz_public_dist ${{ github.sha }}
beremiz ${{ env.beremiz_revisionid }}
matiec ${{ env.matiec_revisionid }}