-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 1019 Bytes
/
update-opc.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
name: update-opc
on:
schedule:
- cron: "*/30 * * * *" # every 30 minutes
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout the current repo
uses: actions/checkout@v4
- name: Clone openshift-pipelines/opc
uses: actions/checkout@v4
with:
repository: openshift-pipelines/opc
path: opc
- name: Commit new changes
run: |
ls opc/
git config user.name github-actions
git config user.email [email protected]
git checkout -b actions/update/opc
rm -rf opc/.git
git add opc
git commit -m "[bot] Update openshift-pipelines/opc"
git push -f origin actions/update/opc
- name: Create pull request
run: gh pr create -B main -H actions/update/opc --title "[bot] Update openshift-pipelines/opc" --body "Auto-generated pull request by GitHub actions"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}