fix: blender の install を sudo で実行するように修正 #2
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: sudo apt-get install -y blender | |
- name: Generate Picture | |
run: blender -b -P 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 output.png | |
git commit -m "Add output.png" | |
git push origin output | |