Skip to content

Commit

Permalink
ARCH-1916 - Update increment run-name and add clarification on code i…
Browse files Browse the repository at this point in the history
…nputs.
  • Loading branch information
danielle-casella-adams committed Sep 6, 2023
1 parent 4c164ff commit 4f6e68b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ jobs:
# The files that contain source code for the action. Only files that affect the action's execution
# should be included like action.yml or package.json. Do not include files like README.md or .gitignore.
# Files do not need to be explicitly provided here if they fall under one of the dirs in dirs-with-code.
# The format of this input is a comma-separated string.
# ** This value must match the same files-with-code argument specified in increment-version-on-merge.yml.
files-with-code: 'action.yml,package.json,package-lock.json' # TODO: Update if there are additional files or scripts.

# The directories that contain source code for the action. Only dirs with files that affect the action's
# execution should be included like src or dist. Do not include dirs like .github or node_modules.
# The format of this input is a comma-separated string.
# ** This value must match the same dirs-with-code argument specified in increment-version-on-merge.yml.
dirs-with-code: 'src,dist' # TODO: Update if there are additional directories with code for the action.

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/increment-version-on-merge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Increment Version on Merge
run-name: 'Increment Version for PR #${{ github.event.pull_request.number }}'
run-name: "${{ github.event.pull_request.merged && 'Increment version for' || 'Closing' }} PR #${{ github.event.pull_request.number }}"

on:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
Expand Down Expand Up @@ -39,10 +39,12 @@ jobs:
# The files that contain source code for the action. Only files that affect the action's execution
# should be included like action.yml or package.json. Do not include files like README.md or .gitignore.
# Files do not need to be explicitly provided here if they fall under one of the dirs in dirs-with-code.
# The format of this input is a comma-separated string.
# ** This value must match the same files-with-code argument specified in build-and-review-pr.yml.
files-with-code: 'action.yml,package.json,package-lock.json' # TODO: Update if there are additional files or scripts.

# The directories that contain source code for the action. Only dirs with files that affect the action's
# execution should be included like src or dist. Do not include dirs like .github or node_modules.
# The format of this input is a comma-separated string.
# ** This value must match the same dirs-with-code argument specified in build-and-review-pr.yml.
dirs-with-code: 'src,dist' # TODO: Update if there are additional directories with code for the action.

0 comments on commit 4f6e68b

Please sign in to comment.