Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/deploy-pre-prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Deploy - Pre-prod"

run-name: "${{ github.event.inputs.branch_or_tag }}"
run-name: "${{ inputs.branch_or_tag }}"

on:
workflow_dispatch:
Expand All @@ -21,18 +21,18 @@ jobs:
name: Tag main
runs-on: ubuntu-latest
outputs:
version: ${{ steps.versioning.outputs.tag || github.event.inputs.branch_or_tag }}
version: ${{ steps.versioning.outputs.tag || inputs.branch_or_tag }}
permissions: write-all
steps:
- name: Checkout main
if: ${{ github.event.inputs.branch_or_tag == 'main' }}
if: ${{ inputs.branch_or_tag == 'main' }}
uses: actions/checkout@v6
with:
ref: main
fetch-depth: "0"

- name: Bump version and push tag
if: ${{ github.event.inputs.branch_or_tag == 'main' }}
if: ${{ inputs.branch_or_tag == 'main' }}
id: versioning
uses: anothrNick/github-tag-action@1.64.0
env:
Expand All @@ -42,7 +42,7 @@ jobs:

- name: View outputs
run: |
echo Tag to deploy: ${{ steps.versioning.outputs.tag || github.event.inputs.branch_or_tag }}
echo Tag to deploy: ${{ steps.versioning.outputs.tag || inputs.branch_or_tag }}

terraform_plan_apply_base_iam:
name: Terraform Plan/Apply base-iam (pre-prod)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Deploy - Prod"

run-name: "${{ github.event.inputs.git_tag }}"
run-name: "${{ inputs.git_tag }}"

on:
workflow_dispatch:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Checkout Tag
uses: actions/checkout@v6
with:
ref: refs/tags/${{ github.event.inputs.git_tag}}
ref: refs/tags/${{ inputs.git_tag}}
fetch-depth: "0"

- name: Apply Main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Deploy - Test"

run-name: "${{ github.event.inputs.git_ref }}"
run-name: "${{ inputs.git_ref }}"

on:
workflow_dispatch:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.git_ref}}
ref: ${{ inputs.git_ref}}

- name: Apply base_iam
uses: ./.github/actions/tf-plan-apply
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tool-rename-git-tag.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Tool: Rename Git Tag'

run-name: "${{ github.event.inputs.old_tag }} -> ${{ github.event.inputs.new_tag }}"
run-name: "${{ inputs.old_tag }} -> ${{ inputs.new_tag }}"

on:
workflow_dispatch:
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.old_tag }}
ref: ${{ inputs.old_tag }}
fetch-depth: 0

- name: Check SHA
Expand All @@ -49,6 +49,6 @@ jobs:
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.new_tag }}',
ref: 'refs/tags/${{ inputs.new_tag }}',
sha: '${{ steps.get-sha.outputs.BRANCH_SHA }}'
})