This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Bump github.com/giantswarm/micrologger from 0.5.0 to 1.0.0 #291
Workflow file for this run
This file contains 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
# Credit: https://github.com/crazy-max/diun | |
name: auto-go-mod-tidy | |
on: | |
push: | |
branches: | |
- 'dependabot/**' | |
jobs: | |
fix: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3.0.0 | |
- | |
# https://github.com/actions/checkout/issues/6 | |
name: Fix detached HEAD | |
run: git checkout ${GITHUB_REF#refs/heads/} | |
- | |
name: Tidy | |
run: | | |
rm -f go.sum | |
go mod tidy | |
- | |
name: Set up Git | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
- | |
name: Commit and push changes | |
run: | | |
git add . | |
if output=$(git status --porcelain) && [ ! -z "$output" ]; then | |
git commit -m 'Fix go modules' | |
git push | |
fi |