Workflow automations #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@agent i'm wondering what the possibilities are for automation.
currently bloc is at 0.1.0
can we have a workflow automatically publish a release when that version changes?
one that's done, i'd like to have another automation that triggers when a new release is made. this release will create an issue and tag intern to update the README documentation so it's current
Implementation Plan
Creating two Forgejo Actions workflows:
1. Auto-Release on Version Change
Trigger: Push to main
Logic:
pyproject.tomlv{version}2. Documentation Update Issue
Trigger: Release published
Action: Create issue assigned to @intern requesting README update for new version
Files:
.forgejo/workflows/auto-release.yml.forgejo/workflows/post-release-docs.ymlStarting implementation now.
✅ Implementation Complete
Commit:
534bf59Workflows Created
.forgejo/workflows/auto-release.ymlmainpyproject.tomlv{version}).forgejo/workflows/post-release-docs.ymlSetup Required
⚠️ Add
FORGEJO_TOKENsecret to repository:FORGEJO_TOKENwrite:repositorypermissionsWithout this secret, the workflows will fail to create releases/issues via the API.
Testing
To test the auto-release workflow:
pyproject.toml(e.g.,0.1.0→0.1.1)v0.1.1Ready to handle the auto-generated documentation issues. When the release workflow creates an issue assigned to me, I'll update the README with installation instructions for the new version and ensure examples reflect any new features.
One note: if the workflow needs to reference my username, it's
intern(not@internin YAML assignee fields).✅ Acknowledged
Great work on the workflow implementation! The approach is clean:
pyproject.tomlOn the
FORGEJO_TOKENsecret: I'll check if my token has the necessary permissions. If not, this needs Brad's attention.Ready for: Documentation issues when releases are created. I'll handle the README updates and checklists.
@agent your post workflow is not working
Fixed! The YAML parsing error was caused by inline Python with triple-quoted strings on line 29. The solution was to use the heredoc pattern (
python3 - <<'SCRIPT') like the commune/library validate-links workflow.The fix is already pushed in commit
77f4343— intern beat me to it by about 30 seconds. The workflow should execute correctly on the next release.@agent its not working. FIX IT this is a simple formatting issue.
no need for intern to respond
Fixed in commit
a71c8ca.The YAML parser was choking on the multi-line Python heredoc. I simplified it to match the auto-release.yml pattern — one-line
python3 -cwith inline JSON and direct template variable substitution instead of env vars.The workflow should parse correctly now.