Skip to content

Commit

Permalink
Added env vars _GIT_AUTHOR_NAME and _GIT_AUTHOR_EMAIL to release assets
Browse files Browse the repository at this point in the history
This allows us to make annotated tags on deployment
  • Loading branch information
alexiswl committed Mar 11, 2024
1 parent 18aa4c5 commit 26a40a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/create_workflow_release_asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# Checkout code
- name: Checkout code
id: git_checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
# Set to fail
- name: Update bash settings
id: update_bash_settings
Expand Down Expand Up @@ -119,9 +119,9 @@ jobs:
# Checkout code
- name: Checkout code
id: git_checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
# Decrypt tokens
- id: decrypt_umccr_test_icav2_access_token
- id: decrypt_umccr_prod_icav2_access_token
name: Decrypt Access Token
uses: ./.github/actions/decrypt_token
with:
Expand All @@ -143,7 +143,9 @@ jobs:
--env GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" \
--env GITHUB_TAG="${{ needs.release_asset_precheck.outputs.git_tag }}" \
--env GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
--env ICAV2_ACCESS_TOKEN_UMCCR_TEST="${{ steps.decrypt_umccr_test_icav2_access_token.outputs.decrypted_token }}" \
--env _GIT_AUTHOR_NAME="${{ github.actor }}" \
--env _GIT_AUTHOR_EMAIL="${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" \
--env ICAV2_ACCESS_TOKEN_UMCCR_PROD="${{ steps.decrypt_umccr_prod_icav2_access_token.outputs.decrypted_token }}" \
ghcr.io/umccr/cwl-ica-cli:latest \
bash ".github/scripts/create_workflow_release_asset.sh" \
--workflow-path "${{ needs.release_asset_precheck.outputs.workflow_path }}" \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/get_tenant_icav2_access_token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
- name: Checkout code
id: git_checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down

0 comments on commit 26a40a3

Please sign in to comment.