Sync Tags from Upstream #83
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 Tags from Upstream | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Runs every day at midnight UTC | |
jobs: | |
sync-tags: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Git | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Add upstream repository | |
run: git remote add upstream https://github.com/rlabrecque/Steamworks.NET | |
- name: Fetch all tags from upstream | |
run: git fetch upstream --tags | |
- name: Push tags to origin | |
run: git push origin --tags | |
# Keep the workflow alive | |
- uses: gautamkrishnar/keepalive-workflow@v1 # using the workflow with default settings |