Skip to content

This Action want to implement an relay that can send github information throught serven and end up to flutter app

License

Notifications You must be signed in to change notification settings

TinyMurky/ActionRelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActionRelay

[!link] This project is based on or inspired by the following repositories:

Please Check License for more information

Description

[!warning] report chart will not include the job that run ActionRelay, please put ActionRelay in sibling job.

  • Original Purpose: ActionRelay originally want send Info to flutter App via middle relay server
  • v0.0.1: In v0.0.1, Action Relay can gather started and completed time of jobs and steps of pull request, and comment of Gantt Chart base on range between started and completed time.

Inputs

NAME_OF_THIS_JOB

Provide the name of the current job (e.g., if name: Run Action Relay is used in the workflow, input Run Action Relay here).
This input is used to filter out the job where ActionRelay is running to prevent it from waiting for itself to complete, which could cause an infinite loop.

Required: Yes


GITHUB_TOKEN

Provide the value ${{ secrets.GITHUB_TOKEN }} exactly as shown. GitHub will automatically recognize this and generate a unique token for the current run.

Required: Yes


TIMEOUT_AFTER_MINUTE

ActionRelay will wait for other jobs to complete before executing.
TIMEOUT_AFTER_MINUTE sets the maximum wait time in minutes. If the timeout is reached, ActionRelay will proceed to the reporting process.
If the value exceeds 15 minutes, it will be constrained to 15 minutes.

Required: Yes
Default: '15'


RELAY_SERVER_URL

ActionRelay will gather pull request information and post it to the [middle server](Not implement), Information than will pass to Flutter App

Required Yes

INTERVAL_TO_CHECK_JOBS

ActionRelay will periodically fetch the GitHub API to check the status of other jobs while waiting for them to complete.
INTERVAL_TO_CHECK_JOBS sets the interval (in milliseconds) between each API fetch.

Required: Yes
Default: '2500'


Outputs

time

The time this action finished

Usage

Note

  • ${{ secrets.GITHUB_TOKEN }} will be auto generated by github, so just use literally ${{ secrets.GITHUB_TOKEN }}
permissions:
  pull-requests: write
jobs:
  run_action_relay:
    name: Run Action Relay
    runs-on: ubuntu-latest

    steps:
      - name: ActionRelay
        id: action-relay
        uses: Tiny_Murky/ActionRelay
        with:
          NAME_OF_THIS_JOB: Run Action Relay
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          TIMEOUT_AFTER_MINUTE: '15'
          INTERVAL_TO_CHECK_JOBS: '2500'
      - name: other step
        id: other-step
        uses: xxxxx

About

This Action want to implement an relay that can send github information throught serven and end up to flutter app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published