Skip to content

Commit

Permalink
ci: run jobs on release branch (#5530)
Browse files Browse the repository at this point in the history
### 💭 Notes

Largely copy-pasted main branch configuration
- see [Github Action
docs](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#using-filters)
for wildcard branch filter.
- notify in a different zulip channel

Not tested, as it requires merging first.

### 👀 Preview steps

- merge this PR
- merge a PR or push directly to release branch
- 🟢 see jobs being run on release branch
  • Loading branch information
Akuukis authored Feb 19, 2025
1 parent b185fad commit 4985372
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci

on:
push:
branches: [ 'release/**' ]

jobs:
darker:
uses: ./.github/workflows/darker.yml

pytest:
uses: ./.github/workflows/pytest.yml

npm-test:
uses: ./.github/workflows/npm-test.yml

on-failure:
runs-on: ubuntu-22.04
if: ${{ always() && (needs.darker.result == 'failure' || needs.darker.result == 'timed_out' || needs.pytest.result == 'failure' || needs.pytest.result == 'timed_out' || needs.npm-test.result == 'failure' || needs.npm-test.result == 'timed_out') }}
needs:
- darker
- pytest
- npm-test
steps:
- name: Send a stream message
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_API_KEY_GITHUB_ACTIONS_BOT }}
email: "[email protected]"
organization-url: "https://chat.kobotoolbox.org"
type: "stream"
to: "Kobo Dev"
topic: "Github Actions (releases)"
content: ":warn: @*devs*, [run #${{github.run_number}}](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}) failed on `main` at [${{ toJson(github.event.commits[0].message) }}](${{ github.event.compare }})"

0 comments on commit 4985372

Please sign in to comment.