-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.19 KB
/
deploytest.yml
File metadata and controls
46 lines (38 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Deploy Table staging
on:
workflow_dispatch:
inputs:
branchOrCommit:
description: 'Branch or commit SHA to deploy'
required: false
type: string
skipDeploy:
description: 'Skip deployment to ECS'
required: false
type: boolean
default: false
permissions:
id-token: write
contents: read
jobs:
deploy-tables-api-staging:
runs-on: ubuntu-latest
env:
SELECTED_REF: ${{ inputs.branchOrCommit != '' && inputs.branchOrCommit || github.sha }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branchOrCommit }}
- name: Determine Commit SHA
id: determine-sha
run: |
echo ${{ inputs.branchOrCommit }}
- name: Prepare Commit Message
run: |
echo "SHORT_CURRENT_COMMIT=$(echo '${{ env.SHA }}' | cut -c1-7)" >> $GITHUB_ENV
echo "SHORT_MASTER_COMMIT=$(echo '${{ env.SHA }}' | cut -c1-7)" >> $GITHUB_ENV
env:
SHA: ${{ github.sha }}
- name: Prepare Commit Message
run: |
echo 'auto(cloud): Updating Skynet Images from ${{ env.SHORT_CURRENT_COMMIT }} to ${{ env.SHORT_MASTER_COMMIT }}'