Skip to content

Commit

Permalink
Array appending debugging
Browse files Browse the repository at this point in the history
Array did not work for bash. Checking out it's being output.
  • Loading branch information
nataliejschultz committed Apr 16, 2024
1 parent 4eeb26b commit e3441b8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/AWS-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,32 @@ jobs:
changedfiles+=${file}
echo "The name of the config file is: ${file}."
echo "CONFIG_FILES=${changedfiles}" >> "$GITHUB_OUTPUT"
echo "changedfiles array: ${changedfiles}"
echo "github output ${GITHUB_OUTPUT}"
fi
done
AssumeRoleAndCallIdentity:
name: AWS Authentication + Sending Welcome Email
needs: changed_files
if: always()
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::${{ env.AWS_ACCT_ID }}:role/${{ env.IAM_ROLE }}
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ env.AWS_REGION }}
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity --debug
# AssumeRoleAndCallIdentity:
# name: AWS Authentication + Sending Welcome Email
# needs: changed_files
# if: always()
# runs-on: ubuntu-latest
# steps:
# - name: Git clone the repository
# uses: actions/checkout@v3
# - name: configure aws credentials
# uses: aws-actions/[email protected]
# with:
# role-to-assume: arn:aws:iam::${{ env.AWS_ACCT_ID }}:role/${{ env.IAM_ROLE }}
# role-session-name: GitHub_to_AWS_via_FederatedOIDC
# aws-region: ${{ env.AWS_REGION }}
# # Hello from AWS: WhoAmI
# - name: Sts GetCallerIdentity
# run: |
# aws sts get-caller-identity --debug

- 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 ${{ needs.changed_files.outputs.config-file-name }}
# - name: Run email-config.py
# run: python email_automation/email-config.py -g ${{ needs.changed_files.outputs.config-file-name }}
1 change: 1 addition & 0 deletions configs/wyoming-original.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@
"data_trajectories_columns_exclude": ["user_id"]
}
}

1 change: 1 addition & 0 deletions configs/wyoming.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@
]
}
}

0 comments on commit e3441b8

Please sign in to comment.