Skip to content

/set 8 29 #ff1206

/set 8 29 #ff1206 #25

Workflow file for this run

name: Issue monitor
on:
issues:
types: [opened, edited]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
process:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Setup uv
uses: astral-sh/setup-uv@v3
- name: Install Python 3.13
run: uv python install 3.13
- name: Install dependencies
run: uv sync --frozen
- name: Process command
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
run: |
uv run scripts/main.py process-string "${ISSUE_TITLE}"
uv run scripts/main.py render
echo "Render done"
- name: commit render
id: add_commit
uses: EndBug/add-and-commit@v9
with:
add: |
data/rendered.png
data/canvas.json
author_name: ${{ github.repository_owner }}
author_email: ${{ github.repository_owner }}@users.noreply.github.com
message: "Render issue ${{ github.event.issue.title }}"
push: true
- name: Create issue comment
uses: peter-evans/create-or-update-comment@v4
if: steps.add_commit.outputs.committed == 'true'
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks @${{ github.event.issue.user.login }}! Success, see changes!
![Canvas](${{ vars.RENDER_URL }}?${{ github.sha }})
reactions: eyes
- name: Close issue
uses: peter-evans/close-issue@v3
with:
comment: "Auto-closing issue"