Skip to content

Commit

Permalink
Update sync.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: kramerro-ibm <102995992+kramerro-ibm@users.noreply.github.com>
  • Loading branch information
kramerro-ibm authored Mar 7, 2024
1 parent d3ec05a commit 0b5f7ae
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b5f7ae

Please sign in to comment.