Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Jan 4, 2024
1 parent ff08d44 commit 009d6a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-community-operators-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: checkout fork
uses: actions/checkout@v4
with:
repository: DataDog/$TARGET_GH_REPO
repository: DataDog/${{ inputs.repo }}
token: ${{ secrets.GH_ROBOT_TOKEN }}

- name: sync fork
Expand All @@ -60,7 +60,7 @@ jobs:
git checkout -b $COMMUNITY_BRANCH_NAME
git push -f --set-upstream origin $COMMUNITY_BRANCH_NAME
gh repo sync DataDog/$TARGET_GH_REPO --branch $COMMUNITY_BRANCH_NAME \
--source $TARGET_GH_ORG/$TARGET_GH_REPO \
--source ${{ inputs.org }}/${{ inputs.repo }} \
--force
- name: checkout datadog-operator to tmp/ dir
Expand All @@ -85,9 +85,9 @@ jobs:
make bundle-redhat
cd ${{ inputs.repo }}
mkdir operators/datadog-operator/$VERSION
if [[ "$TARGET_GH_REPO" == "redhat-marketplace-operators" ]]; then
if [[ "${{ inputs.repo }}" == "redhat-marketplace-operators" ]]; then
cp -R ./tmp/bundle-redhat-mp/* operators/datadog-operator/$VERSION
elif [[ "$TARGET_GH_REPO" == "certified-operators" ]]; then
elif [[ "${{ inputs.repo }}" == "certified-operators" ]]; then
cp -R ./tmp/bundle-redhat-mp/* operators/datadog-operator/$VERSION
fi
cp -R ./tmp/bundle-redhat/* operators/datadog-operator/$VERSION
Expand All @@ -109,6 +109,6 @@ jobs:
git push -f --set-upstream origin $COMMUNITY_BRANCH_NAME
gh pr create --title "$message" \
--body "$body" \
--repo DataDog/$TARGET_GH_REPO \
--repo DataDog/${{ inputs.repo }} \
--base main \
--draft

0 comments on commit 009d6a7

Please sign in to comment.