Skip to content

Commit

Permalink
certify operator for v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Mar 27, 2024
1 parent eaa8462 commit 798983a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/certify-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@ jobs:
- name: Update certified-operators repo
working-directory: certified-operators/operators/nginx-ingress-operator
run: |
mkdir v2.1.1
cp -R ../../../bundle/manifests v2.1.1/
cp -R ../../../bundle/metadata v2.1.1/
mkdir v2.2.0
cp -R ../../../bundle/manifests v2.2.0/
cp -R ../../../bundle/metadata v2.2.0/
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
commit_message: operator nginx-ingress-operator (v2.1.1)
commit_message: operator nginx-ingress-operator (v2.2.0)
commit_author: nginx-bot <[email protected]>
commit_user_name: nginx-bot
commit_user_email: [email protected]
create_branch: true
branch: update-nginx-ingress-operator-to-v2.1.1
branch: update-nginx-ingress-operator-to-v2.2.0
repository: certified-operators

- name: Create PR
working-directory: certified-operators
run: |
gh pr create --title "operator nginx-ingress-operator (v2.1.1)" --body "Update nginx-ingress-operator to v2.1.1" --head nginx-bot:update-nginx-ingress-operator-to-v2.1.1 --base main --repo redhat-openshift-ecosystem/certified-operators
gh pr create --title "operator nginx-ingress-operator (v2.2.0)" --body "Update nginx-ingress-operator to v2.2.0" --head nginx-bot:update-nginx-ingress-operator-to-v2.2.0 --base main --repo redhat-openshift-ecosystem/certified-operators
env:
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}
10 changes: 6 additions & 4 deletions .github/workflows/delete-operator-branch.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Delete Operator Branch

on:
push:
branches:
- delete-branch
workflow_dispatch:
inputs:
branch:
description: "Operator Branch to delete"
required: true

permissions:
contents: read
Expand All @@ -16,6 +18,6 @@ jobs:
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{ secrets.NGINX_PAT }}
branches: update-nginx-ingress-operator-to-v2.2.0
branches: ${{ inputs.branch }}
repository: certified-operators
owner: nginx-bot

0 comments on commit 798983a

Please sign in to comment.