Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/pr-certified.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Certify Operator

on:
workflow_dispatch:

permissions:
contents: read

jobs:
sync:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
token: ${{ secrets.NGINX_PAT }}

- name: Make
run: |
make bundle USE_IMAGE_DIGESTS=true

- name: Checkout certified-operators repo
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
token: ${{ secrets.NGINX_PAT }}
repository: nginx-bot/certified-operators
path: certified-operators

- name: Sync fork with upstream
run: |
git fetch upstream
git merge upstream/main
git push

- name: Update certified-operators repo
working-directory: certified-operators/operators/nginx-ingress-operator
run: |
mkdir v2.0.1
cd v2.0.1
cp -R ../../../bundle/manifests .
cp -R ../../../bundle/metadata .

- name: Commit changes
id: commit
uses: stefanzweifel/[email protected]
with:
commit_message: operator nginx-ingress-operator (v2.0.1)
create_branch: true
branch: update-nginx-ingress-operator-to-v2.0.1
repository: certified-operators

- name: Create PR
working-directory: certified-operators
run: |
gh pr create --title "operator nginx-ingress-operator (v2.0.1)" --body "Update nginx-ingress-operator to v2.0.1" --head nginx-bot:update-nginx-ingress-operator-to-v2.0.1 --base main --repo redhat-openshift-ecosystem/certified-operators