From d9df1c72d1c312eea7550be2ca45c6fab17fc1db Mon Sep 17 00:00:00 2001 From: Tyler Samson Date: Wed, 4 Dec 2024 10:52:16 -0500 Subject: [PATCH] fix: remove deprecated sync --- .github/workflows/sync.yaml | 38 ------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/sync.yaml diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml deleted file mode 100644 index 2620e224..00000000 --- a/.github/workflows/sync.yaml +++ /dev/null @@ -1,38 +0,0 @@ -name: sync -run-name: ${{ github.actor }} is syncing repo to CodeCommit -on: - push: - branches: - - '**' - tags: - - '*' - workflow_dispatch: {} -jobs: - sync: - if: github.repository_owner == 'aws' - name: Sync to CodeCommit - runs-on: ubuntu-latest - permissions: - actions: write - contents: read - id-token: write - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 - with: - role-to-assume: arn:aws:iam::${{ secrets.ACCOUNT }}:role/${{ secrets.ROLE }} - aws-region: ${{ secrets.REGION }} - - - name: Push - run: | - echo "Pushing tag: $GITHUB_REF_NAME" - git config --global --add safe.directory /github/workspace - git config --global credential.'https://git-codecommit.*.amazonaws.com'.helper '!aws codecommit credential-helper $@' - git config --global credential.UseHttpPath true - git remote add code_commit_repo "https://git-codecommit.${{ secrets.REGION }}.amazonaws.com/v1/repos/${{ secrets.REPO }}" - git push code_commit_repo $GITHUB_REF_NAME