GitHub Action to move Clubhouse Stories to another workflow state after a github release was published.
GitHub token (to read pull requests)
Clubhouse Token (to read and move stories)
A JSON object that defines where stories should be moved to.
A regex expression to find the pull request number inside the github release body.
Note that this regular expression runs for every line in the release body.
Use the capture group pr
to find the pull request number, the simplest expression would be #(?<pr>\d+)
.
# this workflow runs when a release was published.
on:
release:
types: [published]
name: "release_published"
jobs:
move-deployed-stories-to-completed:
runs-on: ubuntu-latest
steps:
-
uses: talon-one/clubhouse-move-story-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
clubhouse-token: ${{ secrets.CLUBHOUSE_TOKEN }}
to-state: |
{
"Workflow 1": "Completed",
"Workflow 2": "Deployed"
}
pr-regex: '#(?<pr>\d+)'