Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 21, 2023
1 parent bb6cc62 commit fe97d51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
resources/
tests/
export-excludes: >-
--exclude="bin" --exclude="bin/*"
--exclude="src" --exclude="src/*"
--exclude="resources" --exclude="resources/*"
exported-paths: >-
Expand Down
12 changes: 8 additions & 4 deletions bin/make-reusable-integrity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ EOF

yq -r '."jobs".*."steps"[] | select(."run") | ."run"' "${SOURCE}" >>"${TARGET}"

sed -i -e "s#\${{ inputs\.executables }}#$(yq -r '."on"."workflow_call"."inputs"."executables"."default"' "${SOURCE}")#g" "${TARGET}"
sed -i -e "s#\${{ inputs\.not-printable-ascii-paths }}#$(yq -r '."on"."workflow_call"."inputs"."not-printable-ascii-paths"."default"' "${SOURCE}")#g" "${TARGET}"
sed -i -e "s#\${{ inputs\.export-excludes }}#$(yq -r '."on"."workflow_call"."inputs"."export-excludes"."default"' "${SOURCE}")#g" "${TARGET}"
sed -i -e "s#\${{ inputs\.exported-paths }}#$(yq -r '."on"."workflow_call"."inputs"."exported-paths"."default"' "${SOURCE}")#g" "${TARGET}"
DEFAULT_VALUE="$(yq -r '."on"."workflow_call"."inputs"."executables"."default"' "${SOURCE}")"
sed -i -e "s#\${{ inputs\.executables }}#${DEFAULT_VALUE}#g" "${TARGET}"
DEFAULT_VALUE="$(yq -r '."on"."workflow_call"."inputs"."not-printable-ascii-paths"."default"' "${SOURCE}")"
sed -i -e "s#\${{ inputs\.not-printable-ascii-paths }}#${DEFAULT_VALUE}#g" "${TARGET}"
DEFAULT_VALUE="$(yq -r '."on"."workflow_call"."inputs"."export-excludes"."default"' "${SOURCE}")"
sed -i -e "s#\${{ inputs\.export-excludes }}#${DEFAULT_VALUE}#g" "${TARGET}"
DEFAULT_VALUE="$(yq -r '."on"."workflow_call"."inputs"."exported-paths"."default"' "${SOURCE}")"
sed -i -e "s#\${{ inputs\.exported-paths }}#${DEFAULT_VALUE}#g" "${TARGET}"

sed -i -e "s#\${{ runner\.temp }}#./tmp#g" "${TARGET}"
sed -i -e "s#test -f \.editorconfig#&\\neclint#g" "${TARGET}"
Expand Down

0 comments on commit fe97d51

Please sign in to comment.