update-opc #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 github-actions@github.com | |
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 }} |