Skip to content

Commit

Permalink
test app creds
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Oct 14, 2024
1 parent bc3a42f commit 277a702
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,22 @@ 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
echo "Git config"
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
Expand Down

0 comments on commit 277a702

Please sign in to comment.