Maybe I got the options wrong? #7
Workflow file for this run
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: Rust | |
on: | |
push: | |
branches: [ "autodoc-test" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: 'github-actions-suck' | |
# Similar to `updater_docs.sh` but does not run pandoc | |
- name: Merge Main | |
run: git merge origin/autodoc-test --no-edit -sort -Xtheirs | |
- name: Prepare | |
run: | | |
cargo doc --document-private-items | |
rm -R docs/libs | |
cp -R target/doc docs/libs | |
- name: Commit Doc Update | |
run: | | |
git config --local user.email "docmaster+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add docs | |
git commit -m 'Regenerate Documentation' | |
- name: Push Doc Update | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: 'github-actions-suck' | |