Skip to content

Commit

Permalink
chore(dependabot): run a tidy on benchmarks to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed Nov 30, 2024
1 parent 138eddd commit d42c82a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Dependabot Actions
on:
push:
branches:
- dependabot/**

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.base_ref }}

permissions:
contents: write

jobs:
tidy_benchmarks:
name: Tidy Benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.ORGANIZATION_ACTIONS_TOKEN }}
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.22.5'
- name: Run go mod tidy in benchmarks directory
working-directory: benchmarks
run: |
go mod tidy
if [[ -n $(git status --porcelain) ]]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add go.mod go.sum
git commit -m "chore: run go mod tidy in benchmarks directory"
git push
else
echo "No changes to commit"
fi

0 comments on commit d42c82a

Please sign in to comment.