diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 9ee6c0c4..4ba08ce6 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -1,7 +1,6 @@ name: Sync with GitHub Enterprise env: -# GITHUB_TOKEN: ${{ secrets.GH_ENTERPRISE_TOKEN }} - GITHUB_TOKEN: + GITHUB_TOKEN: ${{ secrets.GH_ENTERPRISE_TOKEN }} GHE_USER: ${{ vars.SYNC_USER }} GHE_FULL_USER: ${{ vars.SYNC_USER_NAME }} ENTERPRISE_URL: ${{ vars.ENTERPRISE_GIT_URL }} @@ -33,22 +32,22 @@ jobs: gh auth login -p https -h ${{ env.ENTERPRISE_URL }} --with-token < /tmp/token.txt gh repo create --public ${{ github.repository }} - - name: Checkout repo and all branches to stage - id: checkout -# if: ${{ failure() && steps.repocheck.conclusion == 'failure' }} - uses: actions/checkout@v4 - with: - repository: ${{ github.repository }} +# - name: Checkout repo and all branches to stage +# id: checkout +## if: ${{ failure() && steps.repocheck.conclusion == 'failure' }} +# uses: actions/checkout@v4 +# with: +# repository: ${{ github.repository }} fetch-depth: 0 - - name: Mirror the repo up to our internal github - id: mirror -# if: ${{ failure() && steps.check_directory.conclusion != 'failure' }} - uses: yesolutions/mirror-action@master - with: - REMOTE: 'https://${{ env.ENTERPRISE_URL }}/${{ github.repository }}' - GIT_USERNAME: ${{ env.GHE_USER }} - GIT_PASSWORD: ${{ env.GITHUB_TOKEN }} +# - name: Mirror the repo up to our internal github +# id: mirror +## if: ${{ failure() && steps.check_directory.conclusion != 'failure' }} +# uses: yesolutions/mirror-action@master +# with: +# REMOTE: 'https://${{ env.ENTERPRISE_URL }}/${{ github.repository }}' +# GIT_USERNAME: ${{ env.GHE_USER }} +# GIT_PASSWORD: ${{ env.GITHUB_TOKEN }} - name: Set repo name as an env var id: repo_name