Skip to content

Commit 8dd9235

Browse files
committed
Use toptal/actions directly
1 parent e4e80c3 commit 8dd9235

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

build-push-image/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ This is a list of ENV Variables that are used in GH Action:
4242
| name | description |
4343
| -------------------------- | --------------------------------------------------------- |
4444
| `DOCKER_BUILDX_ENDPOINT` | Docker buildx endpoint (Optional if using for GH runners) |
45-
| `GCR_ACCOUNT_KEY` | Necessary token to push image to Google cloud |
4645
| `GITHUB_TOKEN` | GitHub token. Is used to checkout `davinci` branch |
4746
| `TOPTAL_BUILD_BOT_SSH_KEY` | SSH key to access Google cloud |
4847

yarn-install/action.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ inputs:
55
description: Access token type **Read-only**. Required for repository with private dependencies. If undefined, `env.NPM_TOKEN` is used
66
required: false
77
cache-version:
8-
description: "Cache version"
9-
default: "0.0"
8+
description: 'Cache version'
9+
default: '0.0'
1010
required: false
1111
path:
1212
description: Relative path under $GITHUB_WORKSPACE where to run `yarn install` command
@@ -20,11 +20,11 @@ inputs:
2020
required: false
2121
max-attempts:
2222
description: How many times to retry installing. This is specially useful if the building of packages might fail because of network connections
23-
default: "1"
23+
default: '1'
2424
required: false
2525
outputs:
2626
cache-hit:
27-
description: "Indicates an exact match was found for `node_modules` || boolean"
27+
description: 'Indicates an exact match was found for `node_modules` || boolean'
2828
value: ${{ steps.node-modules-cache.outputs.cache-hit || steps.node-modules-cache-custom.outputs.cache-hit }}
2929
runs:
3030
using: composite
@@ -61,7 +61,7 @@ runs:
6161

6262
- name: Cache yarn and node_modules folder
6363
if: "inputs.checkout-token && (contains(runner.name, 'inf-gha-runners') || contains(runner.name, 'ubuntu2204'))"
64-
uses: ./.github/cache_action/cache/
64+
uses: toptal/actions/cache@main
6565
id: node-modules-cache-custom
6666
with:
6767
# Do not change the order of the values because if something goes wrong with the network or node_modules during
@@ -100,7 +100,7 @@ runs:
100100
fi
101101
102102
echo "registry=https://us-central1-npm.pkg.dev/toptal-ci/npm-registry/" > ${{ inputs.path }}/.npmrc
103-
103+
104104
echo "//us-central1-npm.pkg.dev/toptal-ci/npm-registry/:_authToken=${{ inputs.npm-gar-token }}" >> ${{ inputs.path }}/.npmrc
105105
106106
echo "@toptal:registry=https://registry.npmjs.org/" >> ${{ inputs.path }}/.npmrc &&

0 commit comments

Comments
 (0)