Merge pull request #27 from yahoojapan/remove-for-cocoapods #30
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: Doc | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
generate-document: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Select Xcode version | |
run: sudo xcode-select -s '/Applications/Xcode_15.0.app' | |
- name: install-bundler and jazzy | |
run: | | |
gem install bundler | |
bundle install --path vendor/bundle | |
- name: Generate document | |
run: bundle exec jazzy | |
- name: Commit files | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
COMMIT_MSG: | | |
Generate jazzy document | |
skip-checks: true | |
run: | | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git checkout master | |
git add . | |
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin master) |