Skip to content

Commit

Permalink
rebased and refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeker12 committed Nov 8, 2024
1 parent 3f3f42e commit 8428bb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/demo_3_apply_production_temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:

terraform-upload-plan-apply:
environment: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.environment || 'production' }}
environment: 'production'
runs-on: ubuntu-latest
env:
TF_API_KEY: ${{ secrets.TF_API_KEY }}
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

- name: Save outputs to file
run: |
cat << EOF > ${{ vars.OUTPUTS_FILE_FN }}
cat << EOF > ${{ vars.ARTIFACT_FN }}
{
"status": "${{ steps.terraform-apply.outputs.status }}"
}
Expand All @@ -69,7 +69,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ vars.APPLY_OUTPUT_ARTIFACT_NAME }}
path: ${{ vars.OUTPUTS_FILE_FN }}
path: ${{ vars.ARTIFACT_FN }}
retention-days: 0


Expand All @@ -78,7 +78,7 @@ jobs:
needs: terraform-upload-plan-apply
uses: ./.github/workflows/update_release.yml
with:
outputs-payload: ${{ vars.APPLY_OUTPUT_ARTIFACT_NAME }}
artifact-name: ${{ vars.APPLY_OUTPUT_ARTIFACT_NAME }}
git-tag: ${{ github.ref_name }}


0 comments on commit 8428bb0

Please sign in to comment.