Sync Fork #7385
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Fork | |
on: | |
schedule: | |
- cron: '*/60 * * * *' # every 60 minutes | |
workflow_dispatch: # on button click | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
token: ${{ secrets.ACTION_TOKEN }} | |
- name: pull | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Smithy Automation" | |
git pull https://github.com/awslabs/smithy.git --no-rebase | |
git push | |
- name: tag | |
run: | | |
git fetch --tags https://github.com/awslabs/smithy.git | |
git push --tags |