README の追加 #59
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 Picture and Push to output branch | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
generate: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Generate Picture | |
uses: nrysk/cgrass@main | |
with: | |
github_username: ${{ github.repository_owner }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
output_path: output/output.png | |
command: "theme" | |
argument: "github" | |
- name: Push output image to output branch | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
target_branch: output | |
build_dir: output | |
commit_message: "Generate Output Image" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |