Skip to content
play

GitHub Action

gitea-action-rerun

0.1 Latest version

gitea-action-rerun

play

gitea-action-rerun

rerun gitea action

Installation

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

              

- name: gitea-action-rerun

uses: nazo6/[email protected]

Learn more about this action in nazo6/gitea-action-rerun

Choose a version

gitea-action-rerun Action

Action to rerun gitea action.

Usage

Here is example workflow.

name: Deploy other repo

on:
  push:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Trigger rerun
        uses: https://github.com/nazo6/gitea-action-rerun@master
        with:
          gitea_awesome: ${{ secrets.COOKIE_GITEA_AWESOME }}
          gitea_incredible: ${{ secrets.COOKIE_GITEA_INCREDIBLE }}
          gitea_instance: https://gitea.example.com
          gitea_repo: example/example
          workflow_file: deploy.yml

Parameters

  • gitea_awesome: gitea_awesome cookie

  • gitea_incredible: gitea_incredible cookie

  • gitea_username: Gitea username

  • gitea_password: Gitea password

You must set "gitea_awesome and gitea_incredible" or "gitea_username and gitea_password"

  • gitea_instance: Gitea url. Must not ends with "/"
  • gitea_repo: Repo name in gitea. Format is {repo}/{name}.
  • workflow_file: Name of workflow file in target repo.

Currently, only latest action can be re-triggered.

Warning

  • This action uses cookie because there is no api to trigger gitea action. This causes some risk.
    • There is no scope for cookie or password. So, unexpected operation may be executed.
    • If you use cookie method, cookie may be expired. (This can be extended by settings LOGIN_REMEMBER_DAYS but do it at your own risk.)
    • If gitea changed specification, this action may not work.