Skip to content

Commit

Permalink
Composite cannot use vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Aug 8, 2023
1 parent 8f8fc7b commit 3a067b7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/configure-rebar/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Configure Rebar3
description: 'Configure publishing token for Rebar3'
inputs:
aws_assume_role:
description: 'The ARN of an AWS IAM role to assume. Used to auth with AWS to upload results to S3.'
required: true

runs:
using: composite
steps:
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.0
name: 'Get the hex publishing token'
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
aws_assume_role: ${{ inputs.aws_assume_role }}
ssm_parameter_pairs: '/production/common/releasing/hex/api_key = HEX_AUTH_TOKEN'
- name: Configure rebar3
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/manual-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: ./.github/actions/build-docs

- uses: ./.github/actions/configure-rebar
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}

- id: publish
name: Publish Documentation
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
# uses: ./.github/actions/ci

- uses: ./.github/actions/configure-rebar
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
if: ${{ !inputs.dry_run }}

- id: publish
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
fetch-depth: 0 #If you only need the current version keep this.

- uses: ./.github/actions/configure-rebar
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
if: ${{ steps.release.outputs.releases_created }}

- uses: ./.github/actions/ci
Expand Down

0 comments on commit 3a067b7

Please sign in to comment.