diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 41507cb1f18e..36c422f1e37d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -105,8 +105,9 @@ jobs: - name: Create test file env: TOKEN: ${{ steps.app-token.outputs.token }} + APP_NAME: "POLKADOTSDK-GHPAGES" + APP_ID: 993763 run: | - curl -H "Authorization: token ${TOKEN}" https://api.github.com/user ls -la echo ${{ github.sha }} > ${{ github.sha }}.txt git status @@ -114,12 +115,12 @@ jobs: cat .git/config echo "Add new remote" git remote remove origin - git remote add origin https://${TOKEN}@github.com/paritytech-stg/polkadot-sdk + git remote add origin https://${APP_NAME}:${TOKEN}@github.com/paritytech-stg/polkadot-sdk echo "Git config" cat .git/config echo "Git push" - git config --global user.email "ci@parity.io" - git config --global user.name "polkadotsdk-ghpages" + git config --global user.email "${APP_ID}+${APP_NAME}[bot]@users.noreply.github.com" + git config --global user.name "${APP_NAME}" git add ${{ github.sha }}.txt git commit -m "___Updated docs for ${{ github.head_ref || github.ref_name }}___" git push origin gh-pages