Skip to content

Commit

Permalink
Test with draft PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Jul 16, 2024
1 parent b614540 commit 2a14f1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GHA_TOKEN }}"
with:
name: "mariadb-operator"
version: "test"
fork-repo-name: "mariadb-operator/test-operators"
version: "v0.0.30"
fork-repo-name: "mariadb-operator/certified-operators"
upstream-repo-name: "redhat-openshift-ecosystem/certified-operators"
bundle-path-dir: "deploy/olm"
ci-path-file: "deploy/olm/ci.yaml"
Expand Down
5 changes: 1 addition & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ runs:
git add .
git commit -m "operator ${{ inputs.name }}(${{ inputs.version }})" --signoff
git push -f
PR_CMD="gh pr create --repo '${{ inputs.upstream-repo-name }}' --title 'operator ${{ inputs.name }} (${{ inputs.version }})' --body 'Added operator ${{ inputs.name }} (${{ inputs.version }})'"
if [ "${{ inputs.dry-run }}" == "true" ]; then
PR_CMD="${PR_CMD} --dry-run"
fi
PR_CMD="gh pr create --draft --repo '${{ inputs.upstream-repo-name }}' --title 'operator ${{ inputs.name }} (${{ inputs.version }})' --body 'Added operator ${{ inputs.name }} (${{ inputs.version }})'"
eval "${PR_CMD}"
echo "🚀 Switching back to root directory"
Expand Down

0 comments on commit 2a14f1c

Please sign in to comment.