githubからcontributionをfetchする機能を追加 #11
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 | |
jobs: | |
generate: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
wget https://download.blender.org/release/Blender4.2/blender-4.2.3-linux-x64.tar.xz | |
tar -xvf blender-4.2.3-linux-x64.tar.xz | |
- name: Generate Picture | |
run: ./blender-4.2.3-linux-x64/blender --background --threads 0 -noaudio --python add.py | |
- name: Commit and push to output branch | |
run: | | |
git config --global user.email "actions@github.com" | |
git config --global user.name "GitHub Actions" | |
git checkout -b output | |
git add -f output.png | |
git commit -m "Add output.png" | |
git push origin output | |