Skip to content

Commit

Permalink
Update reposync.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-devtron authored Aug 22, 2023
1 parent 2190fe2 commit 3cba1d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/reposync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
steps:
- run: |
set -ex
export GIT_USERNAME="${GIT_CONFIG_NAME}"
export GIT_PASSWORD="${GH_TOKEN}"
export ENTERPRISE_REPO="https://github.com/kamal-devtron/testing.git"
git clone https://github.com/kamal-devtron/action-testing.git
git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/kamal-devtron/action-testing.git
git clone $ENTERPRISE_REPO
cd action-testing && export GIT_COMMIT_ID=`git log --format="%H" -n 1`
Expand Down Expand Up @@ -46,5 +48,9 @@ jobs:
git checkout -b oss-enterprise-sync-$GIT_COMMIT && git push -u origin oss-enterprise-sync-$GIT_COMMIT
PR_RESPONSE=$(gh pr create --title "SYNC: OSS sync for $GIT_COMMIT" --fill --base main --head oss-enterprise-sync-$GIT_COMMIT --repo $ENTERPRISE_REPO)
echo "FINAL PR RESPONSE: $PR_RESPONSE"
env:
GH_TOKEN: ${{ secrets.GIT_TARGET_TOKEN }}
GIT_CONFIG_NAME: ${{ secrets.GIT_TARGET_USERNAME }}
GIT_CONFIG_EMAIL: ${{ secrets.GIT_TARGET_EMAIL }}

0 comments on commit 3cba1d6

Please sign in to comment.