Skip to content

nazo6/gitea-action-rerun

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.