Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

trivial edit to trigger the docs update workflow (#171) #53

trivial edit to trigger the docs update workflow (#171)

trivial edit to trigger the docs update workflow (#171) #53

Workflow file for this run

name: Replace links with uids in copy branch
on:
push:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
$ThisCommit = "${{ github.sha }}"
git checkout ⭐Docs
git reset --hard $ThisCommit
pip install ./Specifications/sync-script
replace_links https://raw.githubusercontent.com/MicrosoftDocs/quantum-docs/main/articles/user-guide/language/uid-map.csv ./Specifications/Language/
git add .
git commit -m "Automatic switch of links to xrefs" -a
shell: pwsh
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
branch: ⭐Docs