From 959bd79d1a6495ac2820c7a3cca1d90d75792eb3 Mon Sep 17 00:00:00 2001 From: Tianyu Liu Date: Sat, 24 May 2025 13:50:28 +0200 Subject: [PATCH] see if i get token correctly to config --- .github/workflows/nightly.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 029e2dd..0ba1fef 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -30,12 +30,15 @@ jobs: runs-on: [ubuntu-latest, cloud] needs: build steps: - - name: Test if I can get the token + - name: Put token into config file run: | - echo "TOKEN=${{ secrets.TEST_TOKEN }}" > $GITHUB_ENV - - name: Print the token - run: | - echo "The token is: ${{ secrets.TEST_TOKEN }}" + cat < ${GITHUB_WORKSPACE}/config.json + { + "token": "${{ secrets.TEST_TOKEN }}" + } + EOF + - name: print config file + run: cat ${GITHUB_WORKSPACE}/config.json # - name: Download artifacts # uses: actions/download-artifact@v3 # with: