Skip to content

Merge pull request #20 from yahoojapan/v1.2.1 #23

Merge pull request #20 from yahoojapan/v1.2.1

Merge pull request #20 from yahoojapan/v1.2.1 #23

Workflow file for this run

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 "action@github.com"
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)