From 7ea9261f50743f43ba5c93e5a735d8f584608954 Mon Sep 17 00:00:00 2001 From: Adam Pickering Date: Thu, 18 Apr 2024 11:58:00 -0600 Subject: [PATCH] Update update-main-source.yml --- .github/workflows/update-main-source.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-main-source.yml b/.github/workflows/update-main-source.yml index f260e594a..8010957e0 100644 --- a/.github/workflows/update-main-source.yml +++ b/.github/workflows/update-main-source.yml @@ -36,10 +36,12 @@ jobs: - name: Update main-source branch env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - PROOF_OF_CONCEPT: "success" run: | - test "$PROOF_OF_CONCEPT" = "success" - test "${{ env.PROOF_OF_CONCEPT }}" = "success" + test -n "${{ steps.app-token.outputs.token }}" + test -n "$GITHUB_TOKEN" + test -n "${{ env.GITHUB_TOKEN }}" + test "$GITHUB_TOKEN" = "${{ steps.app-token.outputs.token }}" + test "${{ env.GITHUB_TOKEN }}" = "${{ steps.app-token.outputs.token }}" scripts/pull-ci-scripts bin/partner-charts-ci auto @@ -47,5 +49,5 @@ jobs: # exit if there are no changes git diff --quiet origin/main-source main-source && exit 0 - git push origin main-source + # git push origin main-source # git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/rancher/partner-charts