Skip to content

Wrap conn created with connector #289

Wrap conn created with connector

Wrap conn created with connector #289

Workflow file for this run

---
name: pr-tidy
on:
pull_request_target:
env:
GO111MODULE: "on"
GO_VERSION: 1.20.x
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
tidy:
runs-on: ubuntu-latest
if: ${{ startsWith(github.head_ref, 'dependabot/go_modules/') }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.PUSH_TOKEN }}
ref: ${{ github.head_ref }}
- name: Go cache
uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-cache-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ env.GO_VERSION }}-cache
- name: Tidy
run: |
make tidy
- name: setup-gpg
id: setup-gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.PUSH_PRIVATE_KEY }}
passphrase: ${{ secrets.PUSH_SECRET }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: false
- uses: EndBug/add-and-commit@v9
with:
message: "go mod tidy"
push: true
author_name: ${{ steps.setup-gpg.outputs.name }}
author_email: ${{ steps.setup-gpg.outputs.email }}
committer_name: ${{ steps.setup-gpg.outputs.name }}
committer_email: ${{ steps.setup-gpg.outputs.email }}