Skip to content

Commit

Permalink
workflows: esr: move heartbeat into a different job
Browse files Browse the repository at this point in the history
Changelog-entry: In the ESR workflow, separate heartbeat to a different job
Signed-off-by: Alex Gonzalez <[email protected]>
  • Loading branch information
alexgg committed Oct 3, 2023
1 parent 30375a5 commit b74165f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/esr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ on:
description: OS ESR version override, for example 2.104. By default it uses the latest ESR branch.

jobs:
esr:
heartbeat:
runs-on: ubuntu-latest
steps:
- name: Exit on weekly runs
if: github.event.schedule != '0 0 2 */3 *'
if: github.event_name == 'schedule' && github.event.schedule != '0 0 2 */3 *'
run: exit 1

- name: Create ESR branch and tag
uses: balena-os/github-workflows/.github/workflows/esr.yml@master
secrets: inherit
esr:
name: Create ESR branch and tag
if: github.event_name == 'workflow_dispatch' || github.event.schedule == '0 0 2 */3 *'
uses: balena-os/github-workflows/.github/workflows/esr.yml@master
secrets: inherit

0 comments on commit b74165f

Please sign in to comment.