-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (33 loc) · 1.05 KB
/
knative-dependabot.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: dependabot - update-deps.sh
on:
pull_request:
permissions:
contents: write
jobs:
generate_some_code:
name: Generate some code!
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Set up Go
uses: knative/actions/setup-go@main
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
path: ./src/github.com/${{ github.repository }}
fetch-depth: 0
- name: Run ./hack/update-deps.sh
working-directory: ./src/github.com/${{ github.repository }}
run: ./hack/update-deps.sh
- name: git push
working-directory: ./src/github.com/${{ github.repository }}
run: |
if ! git diff --exit-code --quiet
then
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Run ./hack/update-deps.sh"
git push
fi