Skip to content

Auto Bump Golang Release v0.155.0 #130

Auto Bump Golang Release v0.155.0

Auto Bump Golang Release v0.155.0 #130

Workflow file for this run

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']
})