Skip to content

Commit 696433a

Browse files
committed
Alphabetize entries in the build workflow
We prefer to alphabetize mapping keys in YAML documents whenever possible.
1 parent 9f31700 commit 696433a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name: build
33

44
on:
5-
push:
65
pull_request:
6+
push:
77
repository_dispatch:
88
types:
99
- apb
@@ -58,8 +58,8 @@ jobs:
5858
# it relies on the existence of a go.sum file.
5959
cache: false
6060
go-version: "1.20"
61-
- name: Lookup Go cache directory
62-
id: go-cache
61+
- id: go-cache
62+
name: Lookup Go cache directory
6363
run: |
6464
echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
6565
- uses: actions/cache@v3
@@ -70,6 +70,10 @@ jobs:
7070
packer${{ steps.setup-env.outputs.packer-version }}-\
7171
tf${{ steps.setup-env.outputs.terraform-version }}-"
7272
with:
73+
key: "${{ env.BASE_CACHE_KEY }}\
74+
${{ hashFiles('**/requirements-test.txt') }}-\
75+
${{ hashFiles('**/requirements.txt') }}-\
76+
${{ hashFiles('**/.pre-commit-config.yaml') }}"
7377
# Note that the .terraform directory IS NOT included in the
7478
# cache because if we were caching, then we would need to use
7579
# the `-upgrade=true` option. This option blindly pulls down the
@@ -81,10 +85,6 @@ jobs:
8185
${{ env.PRE_COMMIT_CACHE_DIR }}
8286
${{ env.CURL_CACHE_DIR }}
8387
${{ steps.go-cache.outputs.dir }}
84-
key: "${{ env.BASE_CACHE_KEY }}\
85-
${{ hashFiles('**/requirements-test.txt') }}-\
86-
${{ hashFiles('**/requirements.txt') }}-\
87-
${{ hashFiles('**/.pre-commit-config.yaml') }}"
8888
restore-keys: |
8989
${{ env.BASE_CACHE_KEY }}
9090
- name: Setup curl cache

0 commit comments

Comments
 (0)