1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-11-23 00:50:48 +00:00

Break out the curl cache creation into its own step

Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
This commit is contained in:
Shane Frasier 2021-07-09 22:43:09 -04:00 committed by GitHub
parent 106af21c04
commit c481043981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,9 +60,10 @@ jobs:
id: go-cache id: go-cache
run: | run: |
echo "::set-output name=dir::$(go env GOCACHE)" echo "::set-output name=dir::$(go env GOCACHE)"
- name: Setup curl cache
run: mkdir -p ${{ env.CURL_CACHE_DIR }}
- name: Install Packer - name: Install Packer
run: | run: |
mkdir -p ${{ env.CURL_CACHE_DIR }}
PACKER_ZIP="packer_${PACKER_VERSION}_linux_amd64.zip" PACKER_ZIP="packer_${PACKER_VERSION}_linux_amd64.zip"
curl --output ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \ curl --output ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
--time-cond ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \ --time-cond ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
@ -72,7 +73,6 @@ jobs:
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
- name: Install Terraform - name: Install Terraform
run: | run: |
mkdir -p ${{ env.CURL_CACHE_DIR }}
TERRAFORM_ZIP="terraform_${TERRAFORM_VERSION}_linux_amd64.zip" TERRAFORM_ZIP="terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
curl --output ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \ curl --output ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \
--time-cond ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \ --time-cond ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \