From 944ec027a121a72af1580469aea4eb6afd2861c9 Mon Sep 17 00:00:00 2001 From: gregnuj Date: Thu, 24 Aug 2023 06:49:18 -0500 Subject: [PATCH] Add codecommit.yml --- .github/workflows/codecommit.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/codecommit.yml diff --git a/.github/workflows/codecommit.yml b/.github/workflows/codecommit.yml new file mode 100644 index 00000000..99b4f47f --- /dev/null +++ b/.github/workflows/codecommit.yml @@ -0,0 +1,30 @@ +name: sync to codecommit + +on: + push: + tags: + - '*' + branches: + - '*' + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.CC_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.CC_SECRET_KEY }} + aws-region: us-east-1 + + - name: Sync up to CodeCommit + uses: youyo/sync-up-to-codecommit-action@v1 + with: + repository_name: ${{ github.event.repository.name }} + aws_region: us-east-1 \ No newline at end of file