-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor github actions iteration=11 (#1052)
* use matrix strategy for similar jobs to save time * update version of third-party actions * use composite actions Issue: #1030 Signed-off-by: Ndibe Raymond Olisaemeka <[email protected]>
- Loading branch information
1 parent
140384e
commit 6f9dda3
Showing
4 changed files
with
236 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Comment action | ||
inputs: | ||
token: | ||
required: true | ||
type: string | ||
issue_number: | ||
required: true | ||
type: string | ||
owner: | ||
required: true | ||
type: string | ||
repo: | ||
required: true | ||
type: string | ||
message: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/github-script@v5 | ||
with: | ||
github-token: ${{ inputs.token }} | ||
script: | | ||
const issue_number = ${{ inputs.issue_number }}; | ||
const owner = ${{ inputs.owner }}; | ||
const repo = ${{ inputs.repo }}; | ||
const message = ${{ inputs.message }}; | ||
await github.rest.issues.createComment({ | ||
owner: owner, | ||
repo: repo, | ||
issue_number: issue_number, | ||
body: message | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.