Skip to content

Commit

Permalink
[debug] Debug the workflow auth issues
Browse files Browse the repository at this point in the history
  • Loading branch information
perryjrandall committed Sep 17, 2024
1 parent d9b297c commit 9ac55f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/sync-from-aptos-core.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Sync from aptos-core

on:
pull_request:
workflow_dispatch:

permissions:
contents: read
id-token: write

# env:
# GH_TOKEN: ${{ github.token }}
# GH_TOKEN: ${{ github.token }}

jobs:
sync:
Expand All @@ -27,7 +28,7 @@ jobs:
/usr/bin/git config --global --add url."https://${{ secrets.APTOS_BOT_CLONE_GH_PAT }}:x-oauth-basic@github".insteadOf ssh://git@github
/usr/bin/git config --global --add url."https://${{ secrets.APTOS_BOT_CLONE_GH_PAT }}:x-oauth-basic@github".insteadOf https://github
/usr/bin/git config --global --add url."https://${{ secrets.APTOS_BOT_CLONE_GH_PAT }}:x-oauth-basic@github".insteadOf git@github
- uses: bazel-contrib/setup-bazel@0.8.5
with:
# Avoid downloading Bazel every time.
Expand Down Expand Up @@ -58,15 +59,15 @@ jobs:
chmod +x /usr/local/bin/copybara
- name: Checkout aptos-framework
uses: actions/checkout@v4
with:
path: aptos-framework

- name: Sync all branches
working-directory: aptos-framework
env:
GH_TOKEN: ${{ secrets.APTOS_BOT_CLONE_GH_PAT }}
run: |
set -x
PATH=$PATH:/usr/local/bin/
./sync.sh
set -ex
gh auth setup-git
gh repo clone aptos-labs/aptos-framework
PATH=$PATH:/usr/local/bin/
./aptos-framework/sync.sh
2 changes: 1 addition & 1 deletion sync.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex

SOURCE_REPO_URL="https://github.com/aptos-labs/aptos-core.git"
DESTINATION_REPO_URL="https://github.com/aptos-labs/aptos-framework.git"
Expand Down

0 comments on commit 9ac55f0

Please sign in to comment.