Skip to content

Commit

Permalink
fix: still github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashwat-K committed Jun 14, 2024
1 parent c076d4d commit 7097da7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/update_go_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ jobs:
BRANCH_NAME="update-go-modules-$TIMESTAMP"
git checkout -b $BRANCH_NAME
git add go.mod go.sum
git diff --name-only --cached
git commit -m "Update Go modules and Go version to the latest version"
git push --set-upstream origin $BRANCH_NAME
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
Expand All @@ -96,11 +95,8 @@ jobs:
if [ "${{ env.GO_VERSION_UPDATED }}" == "true" ]; then
echo "Go version updated from ${{ env.CURRENT_GO_VERSION }} to ${{ env.LATEST_GO_VERSION }}" >> pr_body.md
fi
cat pr_body.md
shell: bash
- name: Read PR body
id: read_pr_body
run: echo "PR_BODY=$(<pr_body.md)" >> $GITHUB_ENV
pr_body=$(<pr_body.md)
echo "::set-output name=pr_body::$pr_body"
- name: Create Pull Request
if: env.exit_code == '1'
Expand All @@ -111,5 +107,5 @@ jobs:
branch: ${{ env.BRANCH_NAME }}
base: main
title: Update Go modules and Go version
body: ${{ env.PR_BODY }}
body: ${{ steps.generate_pr_body.outputs.pr_body }}
labels: go-modules, automated-update

0 comments on commit 7097da7

Please sign in to comment.