diff --git a/.github/workflows/gh-sync-cc.yml b/.github/workflows/gh-sync-cc.yml new file mode 100644 index 00000000..a3d92d9c --- /dev/null +++ b/.github/workflows/gh-sync-cc.yml @@ -0,0 +1,29 @@ +name: Sync GitHub with AWS CodeCommit for AV/ADAS Solutions + +on: + # Triggers the workflow on push or pull request events but only for the "addf-sonarscan-branch" branch + push: + branches: ["addf-sonarscan-branch"] + pull_request: + branches: ["addf-sonarscan-branch"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + # if: github.ref == 'refs/heads/addf-sonarscan-branch' + steps: + - name: Git clone the repository + uses: actions/checkout@v3 + - name: configure aws credentials + uses: aws-actions/configure-aws-credentials@v1.7.0 + with: + role-to-assume: arn:aws:iam::560360184571:role/GitHubAction-AssumeRoleWithAction #change to reflect your IAM role’s ARN + role-session-name: GitHub_to_AWS_via_FederatedOIDC + aws-region: us-west-2 + # Hello from AWS: WhoAmI print + - name: Sts GetCallerIdentity + run: | + aws sts get-caller-identity \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6890416a..e3b30dc8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,23 +11,6 @@ on: workflow_dispatch: jobs: - sync: - runs-on: ubuntu-latest - if: github.ref == 'refs/heads/addf-sonarscan-branch' - steps: - - name: Git clone the repository - uses: actions/checkout@v3 - - name: configure aws credentials - uses: aws-actions/configure-aws-credentials@v1.7.0 - with: - role-to-assume: arn:aws:iam::560360184571:role/GitHubAction-AssumeRoleWithAction #change to reflect your IAM role’s ARN - role-session-name: GitHub_to_AWS_via_FederatedOIDC - aws-region: us-west-2 - # Hello from AWS: WhoAmI print - - name: Sts GetCallerIdentity - run: | - aws sts get-caller-identity - modules-analysis-rosbag-scene-detection: runs-on: ubuntu-latest strategy: