Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Nov 14, 2023
1 parent 806d78f commit 8193686
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release-community-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: openshift community pull requests
on: [push]
jobs:
create-community-pr:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: sync fork
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh repo sync DataDog/community-operators \
--source k8s-operatorhub/community-operators \
--force
- name: checkout fork
uses: actions/checkout@v4
with:
repository: DataDog/community-operators
token: ${{ secrets.GITHUB_TOKEN }}

- name: checkout datadog-operator to tmp/ dir
uses: actions/checkout@v4
with:
repository: Datadog/datadog-operator
token: ${{ secrets.GITHUB_TOKEN }}
path: tmp/

- name: update bundle
run: |
mkdir operators/datadog-operator/test-version
cp -R ./tmp/bundle/* operators/datadog-operator/test-version
- name: create PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
message="test PR"
body="test PR"
branch="community-prs"
git checkout -b $branch
git add -A
git commit -s -m "$message"
git push -f --set-upstream origin $branch
gh pr create --title "$message" \
--body "$body" \
--repo DataDog/community-operators
--base main
--draft

0 comments on commit 8193686

Please sign in to comment.