2023-02-23 11:51:15 -05:00
|
|
|
name: examples
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/examples.yml'
|
|
|
|
- './examples/go.mod'
|
|
|
|
- './examples/go.sum'
|
|
|
|
- './tutorials/go.mod'
|
|
|
|
- './tutorials/go.sum'
|
|
|
|
- './go.mod'
|
|
|
|
- './go.sum'
|
|
|
|
workflow_dispatch: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tidy:
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-06 13:24:42 -04:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-15 13:22:41 -04:00
|
|
|
- uses: actions/setup-go@v4
|
2023-02-23 11:51:15 -05:00
|
|
|
with:
|
|
|
|
go-version: '^1'
|
|
|
|
cache: true
|
|
|
|
- shell: bash
|
|
|
|
run: |
|
|
|
|
(cd ./examples && go mod tidy)
|
|
|
|
(cd ./tutorials && go mod tidy)
|
2023-11-07 12:02:25 -05:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
2023-02-23 11:51:15 -05:00
|
|
|
with:
|
|
|
|
commit_message: "chore: go mod tidy tutorials and examples"
|
|
|
|
branch: master
|
|
|
|
commit_user_name: actions-user
|
|
|
|
commit_user_email: actions@github.com
|
|
|
|
|