From 0b34598ad39ec03234827fc98446941dd3b8224f Mon Sep 17 00:00:00 2001 From: Kristian Larsson Date: Tue, 4 Feb 2025 21:28:17 +0100 Subject: [PATCH] Fix version in apt git commits Don't get the ../deb vs in the update-apt-tip-repo where it is directly accessing deb/*.changes instead. Don't get it, yet this did produce the last working apt release. Has this changed? --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a878c8ac..d1d03222 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -694,11 +694,11 @@ jobs: - name: "Get the version" id: get_version run: | - echo ::set-output name=version::$(ls ../deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//') + echo "VERSION=$(ls ../deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//')" >> $GITHUB_ENV - name: "Include new deb in Apt repository" run: | cd apt - reprepro include stable ../deb/*.changes + reprepro include stable deb/*.changes - name: "Push updates to git repository for apt.acton-lang.io" run: | cd apt @@ -707,7 +707,7 @@ jobs: git add . git status git diff - git commit -a -m "Add Acton v${{steps.get_version.outputs.version}}" + git commit -a -m "Add Acton v${VERSION}" git push # Update apt tip repo @@ -742,7 +742,6 @@ jobs: id: get_version run: | echo "VERSION=$(ls deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//')" >> $GITHUB_ENV - echo ::set-output name=version::$(ls deb/*amd64.changes | sed -e 's/.*acton_//' -e 's/_amd64.*//') - name: "Move .deb files in place" run: | cd apt