diff --git a/.eslintrc.json b/.eslintrc.json index ef9852b3..148aaac7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -53,7 +53,8 @@ ], "i18n-text/no-en": "off", "github/no-then": "off", - "github/array-foreach": "off" + "github/array-foreach": "off", + "github/filenames-match-regex": "off" }, "settings": { "import/parsers": { diff --git a/.github/workflows/bump-repository-activity.yml b/.github/workflows/bump-repository-activity.yml index 8c3c33ea..5f7bbf25 100644 --- a/.github/workflows/bump-repository-activity.yml +++ b/.github/workflows/bump-repository-activity.yml @@ -38,12 +38,14 @@ jobs: echo "::warning::Not enough rate limits!" if [ "${{github.event_name != 'schedule'}}" == "true" ]; then echo "::warning::Executing anyway, as event is '${{github.event_name}}'" + echo 'enough=true' >> $GITHUB_OUTPUT + else + echo 'enough=false' >> $GITHUB_OUTPUT fi - echo 'enough=false' >> $GITHUB_OUTPUT fi - name: Bump repository activity - if: ${{env.PUSH_BACK_TOKEN && (github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true)}} + if: ${{env.PUSH_BACK_TOKEN && fromJSON(steps.decision.outputs.enough) == true}} uses: remal-github-actions/bump-repository-activity@v1 with: githubToken: ${{env.PUSH_BACK_TOKEN}} diff --git a/.github/workflows/check-action-secrets.yml b/.github/workflows/check-action-secrets.yml index cbde76d1..99f8d83f 100644 --- a/.github/workflows/check-action-secrets.yml +++ b/.github/workflows/check-action-secrets.yml @@ -40,12 +40,14 @@ jobs: echo "::warning::Not enough rate limits!" if [ "${{github.event_name != 'schedule'}}" == "true" ]; then echo "::warning::Executing anyway, as event is '${{github.event_name}}'" + echo 'enough=true' >> $GITHUB_OUTPUT + else + echo 'enough=false' >> $GITHUB_OUTPUT fi - echo 'enough=false' >> $GITHUB_OUTPUT fi - name: Check action secrets - if: ${{github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true}} + if: ${{fromJSON(steps.decision.outputs.enough) == true}} uses: remal-github-actions/check-action-secrets@v1 with: githubToken: ${{secrets.LIST_SECRETS}} diff --git a/.github/workflows/codeowners-validator.yml b/.github/workflows/codeowners-validator.yml index 7f0acf76..f5d176f2 100644 --- a/.github/workflows/codeowners-validator.yml +++ b/.github/workflows/codeowners-validator.yml @@ -44,8 +44,10 @@ jobs: echo "::warning::Not enough rate limits!" if [ "${{github.event_name != 'schedule'}}" == "true" ]; then echo "::warning::Executing anyway, as event is '${{github.event_name}}'" + echo 'enough=true' >> $GITHUB_OUTPUT + else + echo 'enough=false' >> $GITHUB_OUTPUT fi - echo 'enough=false' >> $GITHUB_OUTPUT fi outputs: enough: ${{steps.decision.outputs.enough}} @@ -53,7 +55,7 @@ jobs: codeowners-validation: needs: - rate-limits - if: ${{github.event_name != 'schedule' || fromJSON(needs.rate-limits.outputs.enough) == true}} + if: ${{fromJSON(needs.rate-limits.outputs.enough) == true}} runs-on: ubuntu-latest timeout-minutes: 15 concurrency: diff --git a/.github/workflows/rebase-dependabot-pull-requests.yml b/.github/workflows/rebase-dependabot-pull-requests.yml index 78d11acc..65aaf45d 100644 --- a/.github/workflows/rebase-dependabot-pull-requests.yml +++ b/.github/workflows/rebase-dependabot-pull-requests.yml @@ -43,12 +43,14 @@ jobs: echo "::warning::Not enough rate limits!" if [ "${{github.event_name != 'schedule'}}" == "true" ]; then echo "::warning::Executing anyway, as event is '${{github.event_name}}'" + echo 'enough=true' >> $GITHUB_OUTPUT + else + echo 'enough=false' >> $GITHUB_OUTPUT fi - echo 'enough=false' >> $GITHUB_OUTPUT fi - name: Rebase Dependabot pull requests - if: ${{github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true}} + if: ${{fromJSON(steps.decision.outputs.enough) == true}} uses: remal-github-actions/rebase-dependabot-pull-requests@v1 with: githubToken: ${{env.PUSH_BACK_TOKEN}} diff --git a/.github/workflows/sync-with-template.yml b/.github/workflows/sync-with-template.yml index eb06bba5..8b1cf8cb 100644 --- a/.github/workflows/sync-with-template.yml +++ b/.github/workflows/sync-with-template.yml @@ -45,12 +45,14 @@ jobs: echo "::warning::Not enough rate limits!" if [ "${{github.event_name != 'schedule'}}" == "true" ]; then echo "::warning::Executing anyway, as event is '${{github.event_name}}'" + echo 'enough=true' >> $GITHUB_OUTPUT + else + echo 'enough=false' >> $GITHUB_OUTPUT fi - echo 'enough=false' >> $GITHUB_OUTPUT fi - name: Sync with template repository - if: ${{env.PUSH_BACK_TOKEN && (github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true)}} + if: ${{env.PUSH_BACK_TOKEN && fromJSON(steps.decision.outputs.enough) == true}} uses: remal-github-actions/sync-with-template@v3 with: githubToken: ${{env.PUSH_BACK_TOKEN}}