Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 30, 2024
1 parent 3d8bcf3 commit 0b63856
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/external.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Test
on:
push:

permissions:
id-token: write

jobs:
test:
runs-on: ubuntu-latest
Expand Down
14 changes: 11 additions & 3 deletions forge/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
- name: Cache Forge CLI binary
if: inputs.forge_version == 'local'
id: cache-forge
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /usr/local/bin/forge
key: ${{ runner.os }}-forge-${{ hashFiles('forge/cli/**') }}
Expand All @@ -33,6 +33,7 @@ runs:
earthly --artifact ./forge/cli+build/forge /usr/local/bin/forge
- name: Get provider configuration
id: provider
shell: bash
run: |
BP=$(forge blueprint dump .)
Expand All @@ -43,5 +44,12 @@ runs:
AWS_ROLE=$(echo "$BP" | jq -r .ci.providers.aws.role)
fi
echo "$AWS_REGION"
echo "$AWS_ROLE"
echo "aws_region=$AWS_REGION" >> $GITHUB_OUTPUT
echo "aws_role=$AWS_ROLE" >> $GITHUB_OUTPUT
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
if: ${{ steps.provider.outputs.aws_region != '' && steps.provider.outputs.aws_role != '' }}
with:
aws-region: ${{ steps.provider.outputs.aws_region }}
role-to-assume: ${{ steps.provider.outputs.aws_role }}

0 comments on commit 0b63856

Please sign in to comment.