mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-22 19:31:07 +00:00
ci: Update workflow actions (#2915)
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -120,7 +120,7 @@ jobs:
|
|||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
|
|
||||||
- name: Restore Privacy Plugin Cache
|
- name: Restore Privacy Plugin Cache
|
||||||
uses: actions/cache/restore@v4.0.2
|
uses: actions/cache/restore@v4
|
||||||
id: privacy_cache_restore
|
id: privacy_cache_restore
|
||||||
if: inputs.cache
|
if: inputs.cache
|
||||||
with:
|
with:
|
||||||
@@ -133,7 +133,7 @@ jobs:
|
|||||||
privacy-cache-
|
privacy-cache-
|
||||||
|
|
||||||
- name: Restore Social Plugin Cache
|
- name: Restore Social Plugin Cache
|
||||||
uses: actions/cache/restore@v4.0.2
|
uses: actions/cache/restore@v4
|
||||||
id: social_cache_restore
|
id: social_cache_restore
|
||||||
if: inputs.cache
|
if: inputs.cache
|
||||||
with:
|
with:
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
social-cache-privacyguides/privacyguides.org-${{ inputs.lang }}-
|
social-cache-privacyguides/privacyguides.org-${{ inputs.lang }}-
|
||||||
|
|
||||||
- name: Restore Optimize Plugin Cache
|
- name: Restore Optimize Plugin Cache
|
||||||
uses: actions/cache/restore@v4.0.2
|
uses: actions/cache/restore@v4
|
||||||
id: optimize_cache_restore
|
id: optimize_cache_restore
|
||||||
if: inputs.cache
|
if: inputs.cache
|
||||||
with:
|
with:
|
||||||
@@ -199,7 +199,7 @@ jobs:
|
|||||||
tar -czf site-${{ inputs.config }}-${{ inputs.lang }}.tar.gz site
|
tar -czf site-${{ inputs.config }}-${{ inputs.lang }}.tar.gz site
|
||||||
|
|
||||||
- name: Find Privacy Plugin Cache
|
- name: Find Privacy Plugin Cache
|
||||||
uses: actions/cache/restore@v4.0.2
|
uses: actions/cache/restore@v4
|
||||||
if: steps.privacy_cache_restore.outputs.cache-hit != 'true' && inputs.cache
|
if: steps.privacy_cache_restore.outputs.cache-hit != 'true' && inputs.cache
|
||||||
id: privacy_cache_test
|
id: privacy_cache_test
|
||||||
with:
|
with:
|
||||||
@@ -209,7 +209,7 @@ jobs:
|
|||||||
.cache/plugin/privacy
|
.cache/plugin/privacy
|
||||||
|
|
||||||
- name: Find Social Plugin Cache
|
- name: Find Social Plugin Cache
|
||||||
uses: actions/cache/restore@v4.0.2
|
uses: actions/cache/restore@v4
|
||||||
if: steps.social_cache_restore.outputs.cache-hit != 'true' && inputs.cache
|
if: steps.social_cache_restore.outputs.cache-hit != 'true' && inputs.cache
|
||||||
id: social_cache_test
|
id: social_cache_test
|
||||||
with:
|
with:
|
||||||
@@ -220,7 +220,7 @@ jobs:
|
|||||||
.cache/plugin/social/assets
|
.cache/plugin/social/assets
|
||||||
|
|
||||||
- name: Find Optimize Plugin Cache
|
- name: Find Optimize Plugin Cache
|
||||||
uses: actions/cache/restore@v4.0.2
|
uses: actions/cache/restore@v4
|
||||||
if: steps.optimize_cache_restore.outputs.cache-hit != 'true' && inputs.cache
|
if: steps.optimize_cache_restore.outputs.cache-hit != 'true' && inputs.cache
|
||||||
id: optimize_cache_test
|
id: optimize_cache_test
|
||||||
with:
|
with:
|
||||||
@@ -230,14 +230,14 @@ jobs:
|
|||||||
.cache/plugin/optimize
|
.cache/plugin/optimize
|
||||||
|
|
||||||
- name: Save Privacy Plugin Cache
|
- name: Save Privacy Plugin Cache
|
||||||
uses: actions/cache/save@v4.0.2
|
uses: actions/cache/save@v4
|
||||||
if: steps.privacy_cache_test.outputs.cache-hit != 'true' && inputs.cache
|
if: steps.privacy_cache_test.outputs.cache-hit != 'true' && inputs.cache
|
||||||
with:
|
with:
|
||||||
key: privacy-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/privacy/**') }}
|
key: privacy-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/privacy/**') }}
|
||||||
path: .cache/plugin/privacy
|
path: .cache/plugin/privacy
|
||||||
|
|
||||||
- name: Save Social Plugin Cache
|
- name: Save Social Plugin Cache
|
||||||
uses: actions/cache/save@v4.0.2
|
uses: actions/cache/save@v4
|
||||||
if: steps.social_cache_test.outputs.cache-hit != 'true' && inputs.cache
|
if: steps.social_cache_test.outputs.cache-hit != 'true' && inputs.cache
|
||||||
with:
|
with:
|
||||||
key: social-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ hashfiles('.cache/plugin/social/manifest.json') }}
|
key: social-cache-${{ inputs.repo }}-${{ inputs.lang }}-${{ hashfiles('.cache/plugin/social/manifest.json') }}
|
||||||
@@ -246,7 +246,7 @@ jobs:
|
|||||||
.cache/plugin/social/assets
|
.cache/plugin/social/assets
|
||||||
|
|
||||||
- name: Save Optimize Plugin Cache
|
- name: Save Optimize Plugin Cache
|
||||||
uses: actions/cache/save@v4.0.2
|
uses: actions/cache/save@v4
|
||||||
if: steps.optimize_cache_test.outputs.cache-hit != 'true' && inputs.cache
|
if: steps.optimize_cache_test.outputs.cache-hit != 'true' && inputs.cache
|
||||||
with:
|
with:
|
||||||
key: optimize-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/optimize/manifest.json') }}
|
key: optimize-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/optimize/manifest.json') }}
|
||||||
|
Reference in New Issue
Block a user