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 420305c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 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/[email protected]
with:
# Avoid downloading Bazel every time.
Expand Down Expand Up @@ -62,11 +63,11 @@ jobs:
uses: actions/checkout@v4
with:
path: aptos-framework

token: ${{ secrets.APTOS_BOT_CLONE_GH_PAT }}

- name: Sync all branches
working-directory: aptos-framework
run: |
set -x
PATH=$PATH:/usr/local/bin/
./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 420305c

Please sign in to comment.