Skip to content

Commit

Permalink
Combining jobs to pass credentials
Browse files Browse the repository at this point in the history
I don't think the jobs can be separated if I want to pass the credentials from my AWS auth step to the run step. Going to try combining them and see what happens!
  • Loading branch information
nataliejschultz committed Dec 19, 2023
1 parent fff0b73 commit d4beeba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,30 @@ jobs:
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity --debug
build:
name: Run email-config.py
needs: AssumeRoleAndCallIdentity
runs-on: ubuntu-latest
# build:
# name: Run email-config.py
# needs: AssumeRoleAndCallIdentity
# runs-on: ubuntu-latest
# env:
# AWS_ACCT_ID: ${( secrets.AWS_ACCT_ID }}
# AWS_ROLE_ARN: arn:aws:iam::${{ secrets.AWS_ACCT_ID }}:role/${{ secrets.ROLE_NAME }}
# AWS_WEB_IDENTITY_TOKEN_SERVER: GitHub
steps:
- name: Checkout
uses: actions/checkout@v2
# steps:
# - name: Checkout
# uses: actions/checkout@v2

- name: Get config name
uses: jitterbit/get-changed-files@v1
with:
format: 'space-delimited'
- id: files
run: |
for changed_file in ${{ steps.files.outputs.all }}; do
echo "The name of the new config file is: ${changed_file}."
echo '{}'
done
- name: Get config name
uses: jitterbit/get-changed-files@v1
with:
format: 'space-delimited'
- id: files
run: |
for changed_file in ${{ steps.files.outputs.all }}; do
echo "The name of the new config file is: ${changed_file}."
done
- name: Install Boto3
run: pip install boto3
- name: Install Boto3
run: pip install boto3

- name: Run email-config.py
run: python email_automation/email-config.py -g configs/${changed_file}
- name: Run email-config.py
run: python email_automation/email-config.py -g configs/${changed_file}
2 changes: 1 addition & 1 deletion configs/wyoming.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
}
}


0 comments on commit d4beeba

Please sign in to comment.