Transmission Version Check #1433
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: Transmission Version Check | |
on: | |
schedule: | |
- cron: 0 * * * * | |
workflow_dispatch: {} | |
jobs: | |
get-transmission-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: dev | |
- name: Check for new version of Transmission | |
run: | | |
LATEST_VERSION=$(curl -L https://api.github.com/repos/transmission/transmission/releases/latest | grep tag_name | awk '{print $2}' | sed -e 's/"//g' -e 's/,//') | |
CURRENT_VERSION=$(cat upstream/transmission-version.txt) | |
if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then | |
echo "$LATEST_VERSION" > upstream/transmission-version.txt | |
git add upstream/transmission-version.txt | |
git commit -m "update transmission build version to ${LATEST_VERSION}" | |
git push origin dev | |
fi |