Bump github.com/docker/docker from 24.0.7+incompatible to 25.0.6+incompatible #129
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
name: Vendoring | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
jobs: | |
vendor-job: | |
name: Vendor | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.21.4' | |
id: go | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Vendor Dependencies | |
run: | | |
go mod tidy | |
go mod vendor | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "No changes to commit" | |
else | |
git add -A | |
git config --global user.name "Metric Store Bot" | |
git config --global user.email "[email protected]" | |
git commit -m "Updating vendored dependencies" | |
git push | |
fi | |
- uses: actions/github-script@v3 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['auto-merge'] | |
}) |