chore(deps): bump github.com/onsi/gomega from 1.36.1 to 1.37.0 #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependabot Go Mod Tidy | |
on: | |
pull_request: | |
paths: | |
- 'go.mod' | |
- 'go.sum' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
go-mod-tidy: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.x' | |
- name: Run go mod tidy | |
run: | | |
go mod tidy | |
- name: Check for changes | |
id: git-check | |
run: | | |
git status --porcelain | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "changes=true" >> $GITHUB_OUTPUT | |
else | |
echo "changes=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Commit and push changes | |
if: steps.git-check.outputs.changes == 'true' | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add go.mod go.sum | |
git commit -m "Run go mod tidy for Dependabot PR" | |
git push |