diff --git a/.github/workflows/test-exclusions.yml b/.github/workflows/test-exclusions.yml new file mode 100644 index 0000000..8101f1a --- /dev/null +++ b/.github/workflows/test-exclusions.yml @@ -0,0 +1,28 @@ +name: Test Exclusions + +on: + pull_request: + push: + +jobs: + test-exclusions: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Test Local Action (debug log) + uses: ./ + env: + LOG_LEVEL: DEBUG + CREATE_LOG_FILE: true + GITHUB_WORKSPACE: test/exclusion-test + with: + exclude-patterns: 'template' + - name: Test Local Action (debug log) + uses: ./ + env: + LOG_LEVEL: DEBUG + CREATE_LOG_FILE: true + GITHUB_WORKSPACE: test/exclusion-test + with: + exclude-patterns: 'template' + deny-warnings: 'true' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index fac6d30..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Test - -on: - pull_request: - push: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Test Local Action (debug log) - uses: ./ - env: - LOG_LEVEL: DEBUG - CREATE_LOG_FILE: true - GITHUB_WORKSPACE: test/exclusion-test - with: - exclude-patterns: 'template' diff --git a/entrypoint.sh b/entrypoint.sh index 799af67..7cf3ff4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,5 @@ #!/bin/bash -env - lint="" if [ $INPUT_LINT = "true" ]; then @@ -21,7 +19,6 @@ if [ ${INPUT_NOTES} = "true" ]; then fi exclusions=${INPUT_PATTERNS} -echo "exclusions: $exclusions" if [ -n "$exclusions" ]; then echo "Exclusions provided. Writing to .sprocket.yml." @@ -30,7 +27,6 @@ if [ -n "$exclusions" ]; then do echo "$exclusion" >> .sprocket.yml done - cat .sprocket.yml fi EXITCODE=0