Update convert_gs2md.yml #5
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: README.gsをREADME.mdに変換 | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: README.gs から README.md を生成 | |
run: | | |
cat README.gs | sed '1d' | sed '$d' | tee README.md | |
- name: 差分があれば更新 | |
id: update | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Updated README.md from README.gs by Github Actions" | |
skip_dirty_check: false | |
- name: 何もしなかった場合にエラー終了させる(続きの処理を動かす条件になるため) | |
if: steps.update.outputs.changes_detected == 'false' | |
run: | | |
echo "No changes detected. Failing the workflow." | |
exit 1 |