Skip to content

Commit d039220

Browse files
feat(Actions): add tags in input options (#9)
1 parent 90a8a5a commit d039220

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: Deploys the selected environment
33
branding: { color: blue, icon: box }
44
inputs:
55
environment: { description: environment name, required: true }
6+
tag: { description: tag to deploy, required: false }
67
node-version: {
78
description: Node version to test the lambda,
89
required: false,
@@ -24,7 +25,16 @@ runs:
2425
using: composite
2526
steps:
2627
- name: Checkout the code
27-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-tags: true
31+
ref: ${{ inputs.tag }}
32+
33+
- name: Tag info
34+
shell: bash
35+
run: |
36+
echo "Current tag: ${{ github.ref }}"
37+
echo "Input tag: ${{ inputs.tag }}"
2838
2939
- name: "Get deploy keys for Abi dependencies"
3040
if: ${{ inputs.ABI_DATABASE_GATEWAY_DEPLOY_KEY != '' || inputs.LIBBY_DEPLOY_KEY != '' || inputs.ABI_AI_GATEWAY_KEY != '' }}

0 commit comments

Comments
 (0)