Skip to content
play

GitHub Action

Operate Actions CI

v1.0.1 Latest version

Operate Actions CI

play

Operate Actions CI

Operate Actions CI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Operate Actions CI

uses: zymap/bot@v1.0.1

Learn more about this action in zymap/bot

Choose a version

Github Action - CI bot

This GitHub Action (written in JavaScript) wraps the GitHub API, to allow you to leverage GitHub Actions to rerun you failure checks in PR.

Usage

Pre-requisites

Create a workflow .yml file in your .github/workflows directory. An example workflow is available below. For more information, reference the Github Help Documentation for Creating a workflow file.

Inputs

  • repo_owner: The owner of the repository
  • repo_name: The name of the repository
  • rerun_cmd: The commands string to rerun all failure checks
  • comments: The comments string of the PR

Example workflow

On every issue_comment created to the pull request matching the rerun_cmd.

on:
  issue_comment:
    types: [created]

jobs:
  bot:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Bot actions
        uses: zymap/bot@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # replace here to your token
        with:
          repo_owner: zymap  # replace here to your repo owner
          repo_name: bot     # replace here to your repo name
          rerun_cmd: rerun failure checks
          comment: ${{ github.event.comment.body }}