From c9992a64fc2ab1f137b08709b8090fab33fc5cf8 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 17 Feb 2022 10:13:04 +0530 Subject: Turn on Configuration Cache (#1733) --- .github/workflows/update_publicsuffix_data.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to '.github/workflows/update_publicsuffix_data.yml') diff --git a/.github/workflows/update_publicsuffix_data.yml b/.github/workflows/update_publicsuffix_data.yml index b97aab54..609769dc 100644 --- a/.github/workflows/update_publicsuffix_data.yml +++ b/.github/workflows/update_publicsuffix_data.yml @@ -2,7 +2,7 @@ name: Update Publix Suffix List data on: workflow_dispatch: schedule: - - cron: '0 0 * * 6' + - cron: "0 0 * * 6" jobs: update-publicsuffix-data: @@ -12,30 +12,30 @@ jobs: uses: actions/checkout@v2.4.0 - name: Set up JDK - uses : actions/setup-java@v2.4.0 - with : - distribution : 'zulu' - java-version : '17' - cache: 'gradle' + uses: actions/setup-java@v2.4.0 + with: + distribution: zulu + java-version: 17 + cache: gradle - name: Download new publicsuffix data uses: gradle/gradle-build-action@v2.1.3 with: - arguments: updatePSL + arguments: --no-configuration-cache updatePSL - name: Compare list changes - run: if [[ $(git diff --binary --stat) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi + run: if [[ $(git diff --binary --stat) != "" ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi - name: Verify update publicsuffixes file uses: gradle/gradle-build-action@v2.1.3 - if: env.UPDATED == 'true' + if: env.UPDATED == "true" with: - arguments: :autofill-parser:test -PslimTests + arguments: --no-configuration-cache :autofill-parser:test -PslimTests - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v3.12.1 - if: env.UPDATED == 'true' + if: env.UPDATED == "true" with: assignees: msfjarvis author: GitHub Actions @@ -48,7 +48,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Close, re-open and enable squash merge for PR - if: steps.cpr.outputs.pull-request-operation == 'created' + if: steps.cpr.outputs.pull-request-operation == "created" shell: bash run: | gh pr close "${PR_URL}" -- cgit v1.2.3