Skip to content

Commit

Permalink
action.yml: move scripts in src/steps
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed May 8, 2024
1 parent ebfde1a commit b96f2f6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ runs:
script: |
const actionPath = '${{ github.action_path }}'
const {default: commentsNumber} = await import(`${actionPath}/src/commentsNumber.js`)
const {default: cleanupComments} = await import(`${actionPath}/src/cleanupComments.js`)
const {default: commentsNumber} = await import(`${actionPath}/src/steps/commentsNumber.js`)
const {default: cleanupComments} = await import(`${actionPath}/src/steps/cleanupComments.js`)
const number = await commentsNumber({context, github})
await cleanupComments({context, github})
Expand All @@ -138,7 +138,7 @@ runs:
script: |
const actionPath = '${{ github.action_path }}'
const {default: unverifiedCommits} = await import(`${actionPath}/src/unverifiedCommits.js`)
const {default: unverifiedCommits} = await import(`${actionPath}/src/steps/unverifiedCommits.js`)
return await unverifiedCommits({context, github})
- if: ${{ steps.reviewdog-enabled.outputs.result == 'true' }}
Expand Down Expand Up @@ -225,7 +225,7 @@ runs:
with:
script: |
const actionPath = '${{ github.action_path }}'
const {default: commentsNumber} = await import(`${actionPath}/src/commentsNumber.js`)
const {default: commentsNumber} = await import(`${actionPath}/src/steps/commentsNumber.js`)
return await commentsNumber({context, github})
- id: assignees-after
if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' }}
Expand All @@ -235,7 +235,7 @@ runs:
with:
script: |
const actionPath = '${{ github.action_path }}'
const {default: assigneesAfter} = await import(`${actionPath}/src/assigneesAfter.js`)
const {default: assigneesAfter} = await import(`${actionPath}/src/steps/assigneesAfter.js`)
return await assigneesAfter({context, github})
- id: assignee-removed-label
if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' }}
Expand All @@ -245,7 +245,7 @@ runs:
with:
script: |
const actionPath = '${{ github.action_path }}'
const {default: assigneeRemoved} = await import(`${actionPath}/src/assigneeRemoved.js`)
const {default: assigneeRemoved} = await import(`${actionPath}/src/steps/assigneeRemoved.js`)
return await assigneeRemoved({context, github})
- id: description-contains-hotwords
if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' && github.actor != 'renovate[bot]' }}
Expand All @@ -255,7 +255,7 @@ runs:
with:
script: |
const actionPath = '${{ github.action_path }}'
const {default: hotwords} = await import(`${actionPath}/src/hotwords.js`)
const {default: hotwords} = await import(`${actionPath}/src/steps/hotwords.js`)
return await hotwords({context, github})
- id: should-trigger
if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' && !(steps.assignee-removed-label.outputs.result == 'true') && ( (steps.comments-before.outputs.result != steps.comments-after.outputs.result) || steps.description-contains-hotwords.outputs.result == 'true') }}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b96f2f6

Please sign in to comment.