Compare commits

...

22 commits

Author SHA1 Message Date
Tonye Jack
8663bb8fc8 Fixed bug with detecting initial commit. 2023-06-04 10:32:19 -06:00
renovate[bot]
4fc4e9d28e
chore(deps): update tj-actions/glob action to v17.2.5 (sec) (#1111)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 17:02:10 +00:00
github-actions[bot]
ffc9786798 Merge branch 'main' into sec 2023-04-28 17:02:07 +00:00
github-actions[bot]
26b58fc476 Merge branch 'main' into sec 2023-04-28 09:02:05 +00:00
renovate[bot]
24fafbaadf
chore(deps): update tj-actions/glob action to v17.2.0 (sec) (#1109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 09:01:36 +00:00
github-actions[bot]
5ec4299447 Merge branch 'main' into sec 2023-04-28 07:07:32 +00:00
github-actions[bot]
89daa3bca3 Merge branch 'main' into sec 2023-04-28 06:35:30 +00:00
github-actions[bot]
5672b9c48d Merge branch 'main' into sec 2023-04-21 18:27:35 +00:00
renovate[bot]
2e61fb6a48
chore(deps): update tj-actions/glob action to v17.1.0 (sec) (#1097)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 17:58:15 +00:00
github-actions[bot]
9edddf3d63 Merge branch 'main' into sec 2023-04-21 17:57:05 +00:00
renovate[bot]
a24d2903b9
chore(deps): update tj-actions/json2file action to v1.4.2 (sec) (#1090)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-14 23:15:26 +00:00
github-actions[bot]
ede393db5b Merge branch 'main' into sec 2023-04-14 23:11:10 +00:00
github-actions[bot]
f3595e1d0d Merge branch 'main' into sec 2023-04-14 02:36:05 +00:00
github-actions[bot]
5c809784a2 Merge branch 'main' into sec 2023-04-12 10:38:05 +00:00
Tonye Jack
0e154fc482 chore(sec): upgrade tj-actions/glob (#1083) 2023-04-12 04:07:02 -06:00
renovate[bot]
72a2c0de17 chore(deps): update peter-evans/create-pull-request action to v5 (sec) (#1076)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2023-04-12 04:07:02 -06:00
renovate[bot]
753840ecba chore(deps): update tj-actions/json2file action to v1.4.1 (sec) (#1074)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 04:07:02 -06:00
renovate[bot]
f8bb26bf6f chore(deps): update tj-actions/glob action to v16.14 (sec) (#1052)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 04:07:02 -06:00
renovate[bot]
1579bc828f chore(deps): update tj-actions/glob action to v16.13 (sec) (#1049)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 04:07:02 -06:00
renovate[bot]
45b68b4a7c chore(deps): update tj-actions/json2file action to v1.4.0 (sec) (#1039)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 04:07:02 -06:00
renovate[bot]
97aac57244 chore(deps): update tj-actions/glob action to v16.12 (sec) (#1035)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 04:07:02 -06:00
Tonye Jack
b5d0d85099 Updated to pin dependent actions with full sha 2023-04-12 04:06:23 -06:00
2 changed files with 8 additions and 8 deletions

View file

@ -208,7 +208,7 @@ runs:
INPUT_FETCH_DEPTH: ${{ inputs.fetch_depth }} INPUT_FETCH_DEPTH: ${{ inputs.fetch_depth }}
INPUT_SINCE_LAST_REMOTE_COMMIT: ${{ inputs.since_last_remote_commit }} INPUT_SINCE_LAST_REMOTE_COMMIT: ${{ inputs.since_last_remote_commit }}
- name: Glob match - name: Glob match
uses: tj-actions/glob@v17.2.5 uses: tj-actions/glob@0fe7f8d9e113caff328f057851c9be33b7a50fbf # v17.2.5
id: glob id: glob
with: with:
files: ${{ inputs.files }} files: ${{ inputs.files }}
@ -255,7 +255,7 @@ runs:
INPUT_HAS_CUSTOM_PATTERNS: ${{ steps.glob.outputs.has-custom-patterns }} INPUT_HAS_CUSTOM_PATTERNS: ${{ steps.glob.outputs.has-custom-patterns }}
INPUT_JSON_RAW_FORMAT: ${{ inputs.json_raw_format }} INPUT_JSON_RAW_FORMAT: ${{ inputs.json_raw_format }}
- name: Generate output files - name: Generate output files
uses: tj-actions/json2file@v1.4.2 uses: tj-actions/json2file@46d3707a327c0049b276be5977a89354b9310003 # v1.4.2
if: inputs.write_output_files == 'true' if: inputs.write_output_files == 'true'
with: with:
outputs: ${{ toJSON(steps.changed-files.outputs) }} outputs: ${{ toJSON(steps.changed-files.outputs) }}

View file

@ -133,23 +133,23 @@ if [[ -z $GITHUB_EVENT_PULL_REQUEST_BASE_REF ]]; then
if [[ "$GITHUB_EVENT_FORCED" == "false" || -z "$GITHUB_EVENT_FORCED" ]]; then if [[ "$GITHUB_EVENT_FORCED" == "false" || -z "$GITHUB_EVENT_FORCED" ]]; then
PREVIOUS_SHA=$GITHUB_EVENT_BEFORE && exit_status=$? || exit_status=$? PREVIOUS_SHA=$GITHUB_EVENT_BEFORE && exit_status=$? || exit_status=$?
else else
PREVIOUS_SHA=$(git rev-list -n 1 "HEAD^") && exit_status=$? || exit_status=$? PREVIOUS_SHA=$(git rev-list -n 1 "HEAD^" || true) && exit_status=$? || exit_status=$?
fi fi
else else
PREVIOUS_SHA=$(git rev-list -n 1 "HEAD^") && exit_status=$? || exit_status=$? PREVIOUS_SHA=$(git rev-list -n 1 "HEAD^" || true) && exit_status=$? || exit_status=$?
fi fi
if [[ -z "$PREVIOUS_SHA" || "$PREVIOUS_SHA" == "0000000000000000000000000000000000000000" ]]; then if [[ -z "$PREVIOUS_SHA" || "$PREVIOUS_SHA" == "0000000000000000000000000000000000000000" ]]; then
PREVIOUS_SHA=$(git rev-list -n 1 "HEAD^") && exit_status=$? || exit_status=$? PREVIOUS_SHA=$(git rev-list -n 1 "HEAD^" || true) && exit_status=$? || exit_status=$?
fi fi
if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then if [[ -z "$PREVIOUS_SHA" || "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
if ! git rev-parse "$PREVIOUS_SHA^1" &>/dev/null; then if ! git rev-parse "$CURRENT_SHA^1" &>/dev/null; then
INITIAL_COMMIT="true" INITIAL_COMMIT="true"
PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA") PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA")
echo "::warning::Initial commit detected no previous commit found." echo "::warning::Initial commit detected no previous commit found."
else else
PREVIOUS_SHA=$(git rev-parse "$PREVIOUS_SHA^1") PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA^1")
fi fi
else else
if [[ -z "$PREVIOUS_SHA" ]]; then if [[ -z "$PREVIOUS_SHA" ]]; then