/sync-up-to-codecommit-action

Sync Github to CodeCommit

Primary LanguageShellMIT LicenseMIT

Sync up to AWS CodeCommit Action

Synchronize from GitHub repository to AWS CodeCommit via GitHub Actions.
No need to ssh-private-key. Need to AWS IAM Credentials only.

Example usage

name: sync up to codecommit

on:
  push:
    tags-ignore:
      - '*'
    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.0.3
        with:
          role-to-assume: ${{ secrets.GITHUB }}
          role-session-name: session
          aws-region: us-west-2

      - name: Sync up to CodeCommit
        uses: liubnu/sync-up-to-codecommit-action@v1
        with:
          repository_name: test_repo
          aws_region: us-west-2

Inputs

  • repository_name Required CodeCommit repository name.
  • aws_region Required Region of the CodeCommit repository.

License

MIT