This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenSearch Migrations Test | |
on: | |
push: | |
branches: | |
- 'testing/githuboidc' | |
jobs: | |
test: | |
if: github.repository == 'opensearch-project/opensearch-migrations' | |
runs-on: ubuntu-latest | |
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.OPENSEARCH_MIGRATIONS_ROLE }} | |
aws-region: us-east-1 | |
- name: Copy files | |
run: | | |
ls -l | |
aws version | |
aws s3 cp ./README.md s3://${{ secrets.OPENSEARCH_MIGRATIONS_S3_TEMP }}/temp/ | |