chore(master): release 1.8.3 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Docs | |
on: | |
push: | |
branches: | |
- 'release-please--*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
config: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
ref: ${{ steps.extract_branch.outputs.branch }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- run: yarn install --immutable | |
- run: yarn ci:generate-config-docs | |
- run: yarn prettier:fix | |
- name: Commit and push changes | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
git config --local user.email "[email protected]" | |
git config --local user.name "TiltCamp" | |
git add CONFIG.md | |
git commit -m "docs: generate config docs" | |
git push | |
else | |
echo "No changes to commit" | |
fi |