Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [master]

permissions:
contents: read

jobs:
statics:
name: Static checks
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
.idea/
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ repos:
- "4"
- "--title"
- "**Table of Contents**"
- repo: local
hooks:
- id: no-input-eval
name: Inputs must be compared, not executed
language: pygrep
entry: '(if|elif|while|until) +"?\$\{?INPUT_'
files: ^start\.sh$
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ echo "Synchronizing repository ${TARGET_REPOSITORY}:${INPUT_TARGET_BRANCH} with
exit 1;
};

if ${INPUT_FORCE}; then
if [ "${INPUT_FORCE}" = "true" ]; then
_FORCE_OPTION='--force'
fi

if ${INPUT_TAGS}; then
if [ "${INPUT_TAGS}" = "true" ]; then
_TAGS='--follow-tags --tags'
fi

Expand Down
Loading