Skip to content

Releases: gautamkrishnar/keepalive-workflow

2.0.10

09 Mar 13:13
Compare
Choose a tag to compare

What's Changed

  • Bump @octokit/request-error from 5.0.1 to 5.1.1 in the npm_and_yarn group across 1 directory in #51
  • Bump the npm_and_yarn group across 1 directory with 2 updates in #52
  • Use correct property for getting API workflow failure by @hansmi in #54
  • Fix typo in "GitHub" in API workflow status message by @hansmi in #53

New Contributors

Full Changelog: 2.0.9...2.0.10

2.0.9

11 Feb 15:55
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.0.8...2.0.9

2.0.8

24 Nov 03:33
Compare
Choose a tag to compare

What's Changed

  • added the ability to skip timeElapsed check by simply setting it to 0

Full Changelog: 2.0.7...2.0.8

2.0.7

22 Aug 07:28
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.6...2.0.7

2.0.6

11 Jul 09:03
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.5...2.0.6

2.0.5

24 May 11:49
Compare
Choose a tag to compare

What's Changed

  • Fixes: Action does not complete and causes the parent workflow to fail. (triggered by pull request from fork) #42
  • Fixed warnings

Full Changelog: 2.0.4...2.0.5

2.0.4

19 May 09:28
Compare
Choose a tag to compare

What's Changed

  • NPM Package bug fixes

Full Changelog: 2.0.3...2.0.4

2.0.3

18 May 18:17
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.0.2...2.0.3

2.0.2

17 May 21:45
Compare
Choose a tag to compare

What's Changed

  • Adding parent workflow name to the output

Full Changelog: 2.0.1...2.0.2

2.0.1

09 Apr 07:23
Compare
Choose a tag to compare

What's Changed

Added multi workflow keepalive

Now you can keep multiple Github actions alive using a single keepalive workflow. Previously you had to add separate keepalive workflow to all the cronjob-triggered Github actions for this to happen.

Example

Let's assume that you have some build workflows:

  • .github/workflows/build1.yml
name: Build 20

on:
  schedule:
    - cron: "0 0 * * *"

jobs:
  publish-npm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "20"
          cache: "yarn"
      - run: yarn install --frozen-lockfile
      - run: yarn build
  • .github/workflows/build2.yml
name: Build 19

on:
  schedule:
    - cron: "0 0 * * *"

jobs:
  publish-npm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "19"
          cache: "yarn"
      - run: yarn install --frozen-lockfile
      - run: yarn build

You can now keep both of these workflows active using the following keepalive workflow code:
.github/workflows/keepalive.yml

name: Keepalive Workflow
on:
  schedule:
    - cron: "0 0 * * *"
permissions:
  actions: write
jobs:
  cronjob-based-github-action:
    name: Keepalive Workflow
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: gautamkrishnar/keepalive-workflow@v2
        with:
          workflow_files: "build1.yml, build2.yml"
          time_elapsed: "0"

Result:
result

Other changes

  • Fix readme to have permissions in correct place by @rfay in #26
  • fix: typo in dummy commit config by @shihyuho in #28

New Contributors

Full Changelog: 2.0.0...2.0.1