Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.81 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.81 KB

Google Cloud Storage or Azure Cache Action

This composite action will decide weither use gcs or azure cache.

  • gcs is used for self-hosted runner
  • azure is used for github runner

Usage

workflow.yml

- name: Cache the node_modules
  id: node-modules-cache
  uses: kopax-polyconseil/gcs-or-azure-cache-action@v3
  with:
    bucket: my-ci-cache
    path: node_modules
    key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
    restore-keys: |
      node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

Inputs

This composite action use under the hood the two following actions:

Read their documentation for all their inputs.

Additionnaly, this GitHub action can control the gcloud auth internaly if you provide the following inputs

Name Type Default Example Description
workload-identity-provider String ø projects/your-project-id/locations/global/workloadIdentityPools/your-identity-pool/providers/your-provider The GCP workload identity provider used for Gcloud auth
service-account String ø [email protected] The GCP service account used for Gcloud auth

License

This project is MIT licensed.