mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
attempt a better default pattern
This commit is contained in:
parent
0af36d6f20
commit
465ca36f28
1 changed files with 3 additions and 2 deletions
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
|
@ -109,10 +109,11 @@ jobs:
|
|||
- name: Pull necessary artifacts
|
||||
run: |
|
||||
currentHash=${{ github.sha }}
|
||||
selectedTargetArtifact=${${{ github.event.inputs.worker_tag }}:-$currentHash}
|
||||
targetArtifact=${{ github.event.inputs.worker_tag }}
|
||||
selected="${targetArtifact:-$currentHash}"
|
||||
|
||||
mkdir worker-dist
|
||||
gsutil cp gs://roleypoly-artifacts/backend-worker/$selectedTargetArtifact/script.js worker-dist/backend-worker.js
|
||||
gsutil cp gs://roleypoly-artifacts/backend-worker/$selected/script.js worker-dist/backend-worker.js
|
||||
|
||||
- run: terraform init --backend-config "prefix=${{github.event.inputs.environment}}"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue