Skip to content

Workshop #2

Workshop #2 #1

Workflow file for this run

name: "Push code to AWS CodeCommit"
on:
push:
branches: ['**']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- shell: bash
env:
CODE_COMMIT_REPO: ${{ secrets.CODE_COMMIT_REPO }}
if: env.CODE_COMMIT_REPO != ''
run: |
git remote add codecommit "$CODE_COMMIT_REPO"
git push -u codecommit ${GITHUB_REF#refs/heads/} --force
git push codecommit --tags