Reverted to older version

pull/1055/head
Sankalp Kotewar 3 years ago committed by GitHub
parent 30f06b918e
commit 6626be91c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -260,53 +260,38 @@ In case of multi-module projects, where the built artifact of one project needs
#### Step 1 - Build the parent module and save it #### Step 1 - Build the parent module and save it
```yaml ```yaml
name: Saving Primes steps:
- uses: actions/checkout@v3
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate primes - name: Build
run: ./generate-primes.sh run: ./build-parent-module.sh
- name: Save Primes - uses: actions/cache/save@v3
id: cache-primes-save id: cache
- uses: actions/cache/save@v3 with:
with: path: path/to/dependencies
path: | key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
path/to/dependencies
some/other/dependencies
key: ${{ runner.os }}-primes
``` ```
#### Step 2 - Restore the built artifact from cache using the same key and path #### Step 2 - Restore the built artifact from cache using the same key and path
```yaml ```yaml
name: Restoring Primes steps:
- uses: actions/checkout@v3
on: push - uses: actions/cache/restore@v3
id: cache
with:
path: path/to/dependencies
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
jobs: - name: Install Dependencies
build: if: steps.cache.outputs.cache-hit != 'true'
runs-on: ubuntu-latest run: ./install.sh
steps: - name: Build
- uses: actions/checkout@v3 run: ./build-child-module.sh
- name: Restoring Primes - name: Publish package to public
id: cache-primes-restore run: ./publish.sh
- uses: actions/cache/restore@v3
with:
path: |
path/to/dependencies
some/other/dependencies
key: ${{ runner.os }}-primes
.
.
. //remaining workflow steps continued
``` ```

Loading…
Cancel
Save