This repository has been archived by the owner on Sep 21, 2024. It is now read-only.
Get latest release version #75732
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: Get latest release version | |
on: | |
schedule: | |
- cron: '2-59/5 * * * *' | |
jobs: | |
get-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch release version | |
run: | | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinity/main/NostalgiaForInfinityX.py && \ | |
mv NostalgiaForInfinityX.py user_data/strategies | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinity/main/configs/blacklist-binance.json && \ | |
mv blacklist-binance.json user_data/strategies/NostalgiaForInfinityX | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinity/main/configs/pairlist-volume-binance-usdt.json && \ | |
mv pairlist-volume-binance-usdt.json user_data/strategies/NostalgiaForInfinityX | |
- name: Check for modified files | |
id: git-check | |
run: echo "modified=$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")" >> $GITHUB_OUTPUT | |
- name: Commit latest release version | |
if: steps.git-check.outputs.modified == 'true' | |
run: | | |
git config user.name 'github-actions' | |
git config user.email 'github-actions@github.com' | |
git add . | |
git commit -am "Update NostalgiaForInfinityX Strategy" | |
git push | |
- name: Notify Telegram | |
uses: appleboy/telegram-action@master | |
if: steps.git-check.outputs.modified == 'true' | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
args: Config Files updated. |