GithubHelp home page GithubHelp logo

rerun-workflow's Introduction

CI Status

Re-run Workflow Action

This action allows re-running a workflow when labels are added to (or removed from) a pull request.

Inputs

Name Required Description
token yes A GitHub Token other than the default GITHUB_TOKEN needs to be specified in order to be able to re-run workflows.
once-label no1 When this label is added to a pull request, re-run the workflow once and remove the label again.
continuous-label no1 When this label is added to a pull request, continuously re-run the workflow until it succeeds or is cancelled. The action needs to be run on workflow_run, push or schedule events for this to work.
trigger-labels no1 When any of the labels in this comma-separated list is added to or removed from a pull request, re-run the workflow once.
failed-jobs-only no Specify whether only failed jobs should be re-run.
workflow yes File name or ID of the workflow which should be re-run.

1 At least one of once-label, continuous-label or trigger-labels is required.

Example Workflow

name: Re-run Workflow

on:
  # Check open pull requests for relevant labels and re-run the
  # corresponding workflows if necessary.
  # (Only recommended for testing.)
  push:

  # Check open pull requests for relevant labels and re-run the
  # corresponding workflows if necessary.
  schedule:
    - cron: '*/30 * * * *'

  # Remove relevant labels when a pull request is closed or trigger
  # a re-run when a relevant labels ia added or removed.
  pull_request_target:
    types:
      - closed
      - labeled
      - unlabeled

  # Check open pull requests for relevant labels and re-run the
  # corresponding workflows if necessary.
  workflow_dispatch:

  # Remove relevant labels when a workflow run finishes successfully.
  workflow_run:
    workflows:
      - CI
    types:
      - completed

jobs:
  rerun-workflow:
    runs-on: ubuntu-latest
    steps:
      - name: Re-run pull request workflows
        uses: reitermarkus/rerun-workflow@v1
        with:
          token: ${{ secrets.MY_GITHUB_TOKEN }}
          once-label: ci-requeue
          continuous-label: ci-retry
          trigger-labels: ci-trigger-1,ci-trigger-2
          failed-jobs-only: false
          workflow: ci.yml

rerun-workflow's People

Contributors

dependabot[bot] avatar reitermarkus avatar renovate[bot] avatar renovate-bot avatar bevanjkay avatar

Stargazers

Thomas Angistalis avatar Ievgen Pyrogov avatar Daniel Bast avatar Patrick Connolly avatar Francisco Bischoff avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

bevanjkay

rerun-workflow's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/upload-artifact v4
  • actions/upload-artifact v4
  • actions/checkout v4
  • actions/download-artifact v4
  • actions/download-artifact v4
  • actions/checkout v4
  • actions/download-artifact v4
  • tibdex/github-app-token v2@3beb63f4bd073e61482598c45c71c1019b59b73a
  • peter-evans/create-pull-request b5ed4c38bcc781bdf2cbc76cb036a9220f72d171
.github/workflows/create-test-pr.yml
  • actions/checkout v4
  • tibdex/github-app-token v2@3beb63f4bd073e61482598c45c71c1019b59b73a
  • peter-evans/create-pull-request v6@6d6857d36972b65feb161a90e484f2984215f83e
.github/workflows/dependabot-merge.yml
  • peter-evans/find-comment v3
  • peter-evans/create-or-update-comment v4
.github/workflows/pull-request-fail.yml
.github/workflows/push-version-branch.yml
  • Actions-R-Us/actions-tagger v2.0.3
.github/workflows/rerun-workflow.yml
  • actions/checkout v4
npm
package.json
  • @actions/core ^1.10.1
  • @actions/github ^6.0.0
  • ts-is-present ^1.2.2
  • @graphql-codegen/cli 5.0.2
  • @graphql-codegen/typescript 4.0.7
  • @graphql-codegen/typescript-document-nodes 4.0.7
  • @graphql-codegen/typescript-operations ^4.2.0
  • @graphql-codegen/typescript-resolvers 4.1.0
  • @octokit/graphql-schema ^15.18.0
  • @octokit/types ^13.5.0
  • @types/jest ^29.5.12
  • @types/node ^20.12.12
  • @typescript-eslint/eslint-plugin ^7.10.0
  • @vercel/ncc ^0.38.1
  • eslint ^8.57.0
  • eslint-plugin-github ^5.0.0-2
  • eslint-plugin-jest ^28.5.0
  • eslint-plugin-jsonc ^2.15.1
  • eslint-plugin-prettier ^5.1.3
  • graphql ^16.8.1
  • jest ^29.7.0
  • jest-circus ^29.7.0
  • js-yaml ^4.1.0
  • ts-jest ^29.1.2
  • ts-node ^10.9.2
  • typescript ^5.4.5
  • node >=20
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.