@@ -45,16 +45,16 @@ jobs:
4545 private-key : ${{ secrets.GH_APP_KEY }}
4646 owner : ${{ github.repository_owner }}
4747
48+ - name : Set GH_TOKEN for all steps
49+ run : echo "GH_TOKEN=${{ steps.app.outputs.token }}" >> $GITHUB_ENV
50+
4851 - name : Checkout repository
49- uses : actions/checkout@v2
52+ uses : actions/checkout@v6
5053 with :
5154 token : ${{ steps.app.outputs.token }}
5255
53- - name : Setup git authentication for GitHub App
54- env :
55- GH_TOKEN : ${{ steps.app.outputs.token }}
56- run : |
57- git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
56+ - name : Configure git with x-access-token
57+ run : git config --global url."https://x-access-token:${{ steps.app.outputs.token }}@github.com/".insteadOf "https://github.com/"
5858
5959 # This step is to fetch the images unanonymously to have higher bandwidth
6060 - name : Login to Docker Hub
@@ -64,14 +64,10 @@ jobs:
6464 password : ${{ secrets.DOCKERHUB_PASSWORD }}
6565
6666 - name : Clone tools branch
67- env :
68- GH_TOKEN : ${{ steps.app.outputs.token }}
69- run : git clone -b v0.8.35 --depth=1 https://x-access-token:${GH_TOKEN}@github.com/citusdata/tools.git tools
67+ run : git clone -b v0.8.35 --depth=1 https://github.com/citusdata/tools.git tools
7068
7169 - name : Clone build branch
72- env :
73- GH_TOKEN : ${{ steps.app.outputs.token }}
74- run : git clone -b "${MAIN_BRANCH}" --depth=1 https://x-access-token:${GH_TOKEN}@github.com/citusdata/packaging.git packaging
70+ run : git clone -b "${MAIN_BRANCH}" --depth=1 https://github.com/citusdata/packaging.git packaging
7571
7672 - name : Install package dependencies
7773 run : sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources
8076 run : python -m pip install -r tools/packaging_automation/requirements.txt
8177
8278 - name : Build packages
83- env :
84- GH_TOKEN : ${{ steps.app.outputs.token }}
8579 run : |
8680 python -m tools.packaging_automation.citus_package \
8781 --gh_token "${GH_TOKEN}" \
9387 --input_files_dir "$(pwd)/packaging"
9488
9589 - name : Publish packages
96- env :
97- GH_TOKEN : ${{ steps.app.outputs.token }}
9890 run : |
9991 python -m tools.packaging_automation.upload_to_package_cloud \
10092 --platform "${{ matrix.platform }}" \
0 commit comments