Skip to content

Commit 31ebd71

Browse files
authored
Update deps (#380)
1 parent 2cdb395 commit 31ebd71

File tree

9 files changed

+436
-474
lines changed

9 files changed

+436
-474
lines changed

.github/workflows/cleanup.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ jobs:
1414
runs-on: 'ubuntu-latest'
1515

1616
steps:
17-
- uses: 'actions/checkout@v4'
18-
19-
- uses: 'google-github-actions/auth@v2'
20-
with:
21-
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
22-
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
23-
24-
- uses: 'google-github-actions/setup-gcloud@v2'
25-
26-
- name: Delete services
27-
run: |-
28-
gcloud config set core/project "${{ vars.PROJECT_ID }}"
29-
30-
# List and delete all versions that were deployed 30 minutes ago or
31-
# earlier. The date math here is a little weird, but we're looking for
32-
# deployments "earlier than" 30 minutes ago, so it's less than since
33-
# time increases.
34-
(IFS=$'\n'; for NAME in $(gcloud app versions list --format="value(id)" --filter="service != "default" AND version.createTime < '-pt30m'"); do
35-
echo "Deleting ${NAME}..."
36-
gcloud app versions delete ${NAME} --quiet
37-
done)
17+
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
18+
19+
- uses: 'google-github-actions/auth@v2' # ratchet:exclude
20+
with:
21+
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
22+
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
23+
24+
- uses: 'google-github-actions/setup-gcloud@v2' # ratchet:exclude
25+
26+
- name: Delete services
27+
run: |-
28+
gcloud config set core/project "${{ vars.PROJECT_ID }}"
29+
30+
# List and delete all versions that were deployed 30 minutes ago or
31+
# earlier. The date math here is a little weird, but we're looking for
32+
# deployments "earlier than" 30 minutes ago, so it's less than since
33+
# time increases.
34+
(IFS=$'\n'; for NAME in $(gcloud app versions list --format="value(id)" --filter="service != "default" AND version.createTime < '-pt30m'"); do
35+
echo "Deleting ${NAME}..."
36+
gcloud app versions delete ${NAME} --quiet
37+
done)

.github/workflows/draft-release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ on:
1515

1616
jobs:
1717
draft-release:
18-
name: 'Draft release'
19-
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v0'
18+
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v3' # ratchet:exclude
2019
with:
2120
version_strategy: '${{ github.event.inputs.version_strategy }}'
22-
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
2321
secrets:
2422
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

.github/workflows/integration.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,43 +24,43 @@ jobs:
2424
runs-on: 'ubuntu-latest'
2525

2626
steps:
27-
- uses: 'actions/checkout@v4'
27+
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
2828

29-
- uses: 'actions/setup-node@v4'
30-
with:
31-
node-version: '20.x'
29+
- uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
30+
with:
31+
node-version: '20.x'
3232

33-
- name: 'npm build'
34-
run: 'npm ci && npm run build'
33+
- name: 'npm build'
34+
run: 'npm ci && npm run build'
3535

36-
- uses: 'google-github-actions/auth@v2'
37-
with:
38-
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
39-
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
36+
- uses: 'google-github-actions/auth@v2' # ratchet:exclude
37+
with:
38+
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
39+
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
4040

41-
- name: 'Update app.yaml'
42-
run: |-
43-
echo "service: ${{ github.job }}-${{ github.run_number }}" >> ${{ github.workspace }}/example-app/app.yaml
41+
- name: 'Update app.yaml'
42+
run: |-
43+
echo "service: ${{ github.job }}-${{ github.run_number }}" >> ${{ github.workspace }}/example-app/app.yaml
4444
45-
- name: 'Deploy'
46-
id: 'deploy'
47-
uses: './'
48-
with:
49-
working_directory: '${{ github.workspace }}/example-app'
50-
build_env_vars: |-
51-
FOO=bar
52-
ZIP=zap
53-
env_vars: |-
54-
FOO=bar
55-
ZIP=zap
45+
- name: 'Deploy'
46+
id: 'deploy'
47+
uses: './'
48+
with:
49+
working_directory: '${{ github.workspace }}/example-app'
50+
build_env_vars: |-
51+
FOO=bar
52+
ZIP=zap
53+
env_vars: |-
54+
FOO=bar
55+
ZIP=zap
5656
57-
- name: 'Verify deployment'
58-
run: |-
59-
curl '${{ steps.deploy.outputs.url }}' \
60-
--silent \
61-
--fail \
62-
--location \
63-
--retry 5 \
64-
--retry-connrefused \
65-
--retry-delay 5 \
66-
--retry-max-time 300
57+
- name: 'Verify deployment'
58+
run: |-
59+
curl '${{ steps.deploy.outputs.url }}' \
60+
--silent \
61+
--fail \
62+
--location \
63+
--retry 5 \
64+
--retry-connrefused \
65+
--retry-delay 5 \
66+
--retry-max-time 300

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- name: 'Checkout'
19-
uses: 'actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871' # ratchet:actions/checkout@v4
19+
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
2020

2121
- name: 'Publish'
2222
id: 'publish'
23-
uses: 'actions/publish-immutable-action@4b1aa5c1cde5fedc80d52746c9546cb5560e5f53' # ratchet:actions/[email protected].3
23+
uses: 'actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978' # ratchet:actions/[email protected].4
2424
with:
2525
github-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88

99
jobs:
1010
release:
11-
if: |-
12-
startsWith(github.event.head_commit.message, 'Release: v')
13-
name: 'Release'
14-
uses: 'google-github-actions/.github/.github/workflows/release.yml@v1' # ratchet:exclude
15-
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
11+
uses: 'google-github-actions/.github/.github/workflows/release.yml@v3' # ratchet:exclude
1612
secrets:
1713
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

.github/workflows/unit.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os:
24-
- 'ubuntu-latest'
25-
- 'windows-latest'
26-
- 'macos-latest'
24+
- 'ubuntu-latest'
25+
- 'windows-latest'
26+
- 'macos-latest'
2727
runs-on: '${{ matrix.os }}'
2828

2929
steps:
30-
- uses: 'actions/checkout@v4'
30+
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
3131

32-
- uses: 'actions/setup-node@v4'
33-
with:
34-
node-version: '20.x'
32+
- uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
33+
with:
34+
node-version: '20.x'
3535

36-
- name: 'npm build'
37-
run: 'npm ci && npm run build'
36+
- name: 'npm build'
37+
run: 'npm ci && npm run build'
3838

39-
- name: 'npm lint'
40-
# There's no need to run the linter for each operating system, since it
41-
# will find the same thing 3x and clog up the PR review.
42-
if: ${{ matrix.os == 'ubuntu-latest' }}
43-
run: 'npm run lint'
39+
- name: 'npm lint'
40+
# There's no need to run the linter for each operating system, since it
41+
# will find the same thing 3x and clog up the PR review.
42+
if: ${{ matrix.os == 'ubuntu-latest' }}
43+
run: 'npm run lint'
4444

45-
- name: 'npm test'
46-
run: 'npm run test'
45+
- name: 'npm test'
46+
run: 'npm run test'

dist/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)