gopidesupavan commented on code in PR #55328: URL: https://github.com/apache/airflow/pull/55328#discussion_r2328403273
########## .github/actions/install-prek/action.yml: ########## @@ -91,3 +94,17 @@ runs: working-directory: ${{ github.workspace }} env: SKIP: ${{ inputs.skip-prek-hooks }} + - name: "Prepare .tar file from prek cache" + run: | + tar -C ~ -czf /tmp/cache-prek.tar.gz .cache/prek + shell: bash + if: inputs.save-cache == 'true' + - name: "Save prek cache" + uses: apache/infrastructure-actions/stash/save@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468 + with: + # yamllint disable rule:line-length + key: cache-prek-v6-${{ inputs.platform }}-${{ inputs.python-version }}-${{ inputs.skip-prek-hooks }}-${{ hashFiles('.pre-commit-config.yaml') }} + path: /tmp/cache-prek.tar.gz + if-no-files-found: 'error' + retention-days: '2' + if: inputs.save-cache == 'true' Review Comment: if we are defaulting to upload cache to artifact for every build, do we need this check? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org