aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/sync-translated-content.yml
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-03-12 12:48:57 -0500
committerGitHub <noreply@github.com>2021-03-12 18:48:57 +0100
commitecd81e5f73adf6fef6fc0067f50d088a51c32f6a (patch)
treeca5dd0b500f7d2932c74a894b687774dc5650db7 /.github/workflows/sync-translated-content.yml
parent5a93d0e456e29bc10ac8c58275bdf5bdcc6abdd6 (diff)
downloadtranslated-content-ecd81e5f73adf6fef6fc0067f50d088a51c32f6a.tar.gz
translated-content-ecd81e5f73adf6fef6fc0067f50d088a51c32f6a.tar.bz2
translated-content-ecd81e5f73adf6fef6fc0067f50d088a51c32f6a.zip
Revert "fix caching" (#121)
* Revert "fix caching" * trivial change * correct the path * trivial change * trivial change * other files too
Diffstat (limited to '.github/workflows/sync-translated-content.yml')
-rw-r--r--.github/workflows/sync-translated-content.yml19
1 files changed, 8 insertions, 11 deletions
diff --git a/.github/workflows/sync-translated-content.yml b/.github/workflows/sync-translated-content.yml
index f47e7f6e5c..ab5cbd40c0 100644
--- a/.github/workflows/sync-translated-content.yml
+++ b/.github/workflows/sync-translated-content.yml
@@ -28,19 +28,16 @@ jobs:
with:
node-version: "12"
- - name: Get yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - uses: actions/cache@v2.1.4
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
+ - name: Cache node_modules
+ uses: actions/cache@v2.1.4
+ id: cached-node_modules
with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
+ path: |
+ ${{ github.workspace }}/mdn/content/node_modules
+ key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install all yarn packages
+ if: steps.cached-node_modules.outputs.cache-hit != 'true'
working-directory: ${{ github.workspace }}/mdn/content
run: |
yarn --frozen-lockfile
@@ -53,7 +50,7 @@ jobs:
run: |
yarn content sync-translated-content
- - name: Commit changes
+ - name: Commit changes
# git commit will fail if there are no changes but that's okay!
continue-on-error: true
run: |