From 6739829db31d0ce4226de2623fa0ad9cedde39cb Mon Sep 17 00:00:00 2001 From: jessebot Date: Tue, 9 Jan 2024 15:44:18 +0100 Subject: [PATCH] try to make commiting back to the repo work --- .github/workflows/update-brew-package.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-brew-package.yml b/.github/workflows/update-brew-package.yml index 42c4921..40d6ac6 100644 --- a/.github/workflows/update-brew-package.yml +++ b/.github/workflows/update-brew-package.yml @@ -16,7 +16,7 @@ jobs: - name: Get local tag id: localTag run: | - echo "tag=`echo $(git tag)`" + echo "tag=`echo $(git describe --tags --abbrev=0)`" echo "tag=`echo $(git describe --tags --abbrev=0)`" >> "$GITHUB_OUTPUT" - name: Get upstream release id: upstreamRelease @@ -28,3 +28,7 @@ jobs: run: | sed -i 's/${{ steps.localTag.outputs.tag }}/${{ steps.upstreamRelease.outputs.release }}/g' ./Formula/smol-k8s-lab.rb cat ./Formula/smol-k8s-lab.rb + git commit -m "Updating latest package from ${{ steps.localTag.outputs.tag }} to ${{ steps.upstreamRelease.outputs.release }}" ./Formula/smol-k8s-lab.rb + git push + git tag ${{ steps.upstreamRelease.outputs.release }} + git push --tags