Skip to content

Commit

Permalink
Added github actions between repositories. (PolusAI#72)
Browse files Browse the repository at this point in the history
* Added github actions between repositories.

* Set workflow run-name

* add info to concurrency criteria

* remove echo (hangs on Windows)

* fix environment variables

* Added secrets.ACCESS_TOKEN check and documentation.

* dispatch build_and_run_workflows.yml

* remove concurrency from branch_dispatch.yml

* use intermediate environment variable to prevent script injection attacks

* use javascript actions to support multi line commit messages and to prevent script injection attacks

* Replace personal access token with Github App token.

* Use base repo owner.

* Clean comments and add doc to branch dispatch.

---------

Co-authored-by: Jake Fennick <jake.fennick@axleinfo.com>
  • Loading branch information
ywang271828 and jfennick authored Aug 9, 2023
1 parent e83cf5b commit d37bde0
Show file tree
Hide file tree
Showing 24 changed files with 53,018 additions and 25 deletions.
54 changes: 54 additions & 0 deletions .github/my_actions/branch_dispatch/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# See https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action
name: 'Branch dispatch'
description: 'Check for the existence of a given fork & branch'
inputs:
repository:
description: 'The name of the repository only (without owner)'
type: string
required: true
workflow_yml:
description: 'The name of the workflow.yml file to be dispatched'
type: string
required: true
sender_repo:
description: 'The name of the initiating repository'
type: string
required: true
sender_repo_owner:
description: 'The name of the repository owner'
type: string
required: true
wic_owner:
description: 'The name of the wic owner'
type: string
required: true
wic_ref:
description: 'The name of the wic branch / ref'
type: string
required: true
event_type:
description: 'The name of the event type'
type: string
required: true
commit_message:
description: 'The commit message'
type: string
required: true
mm_workflows_owner:
description: 'The name of the mm-workflows owner'
type: string
required: true
mm_workflows_ref:
description: 'The name of the mm-workflows branch / ref'
type: string
required: true
access_token:
description: 'The token used for authentication'
type: string
required: true
outputs:
response:
description: 'The response text'
runs:
using: 'node16'
main: 'dist/index.js'
Loading

0 comments on commit d37bde0

Please sign in to comment.