Check Synchronet Source Repository for Updates #1357
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: Check Synchronet Source Repository for Updates | |
on: | |
push: | |
branches: | |
- master | |
# 15:00 utc daily (~7-8am california) | |
# after gitlab.synchro.net runs nightlies (5am) | |
schedule: | |
- cron: "0 15 * * *" | |
jobs: | |
stale: | |
name: Checking for New Synchronet Releases/Nightlies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Run Update Checks | |
run: | | |
# Setup SSH Agent and Configure Git for publishing | |
eval `ssh-agent -t 120 -s` | |
echo "${{ secrets.GHA_DEPLOY_KEY }}" | ssh-add - | |
git config --local user.email "$GHA_EMAIL" | |
git config --local user.name "Github Agent" | |
git remote set-url origin "$(git config --get remote.origin.url | sed 's#http.*com/#[email protected]:#g')" | |
mkdir -p ~/.ssh/ | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
# Check and Tag Updates | |
.github/scripts/check.ts || exit 1 | |
# Stop SSH Agent | |
ssh-agent -k |