Skip to content

Commit

Permalink
try to make commiting back to the repo work
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Jan 9, 2024
1 parent 6d961b0 commit 6739829
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-brew-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6739829

Please sign in to comment.