Get latest release version #92098
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: '* * * * *' | |
jobs: | |
get-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
- name: Fetch release version | |
run: | | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinity/main/NostalgiaForInfinityNext.py && \ | |
mv NostalgiaForInfinityNext.py user_data/strategies | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinity/main/configs/blacklist-binance.json && \ | |
mv blacklist-binance.json user_data | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinity/main/configs/pairlist-volume-binance-usdt.json && \ | |
mv pairlist-volume-binance-usdt.json user_data | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinityData/main/pairlists.json && \ | |
mv pairlists.json user_data/data | |
curl -O https://raw.githubusercontent.com/iterativv/NostalgiaForInfinityData/main/binance-usdt-static.json && \ | |
mv binance-usdt-static.json user_data/data | |
- name: Check for modified files | |
id: git-check | |
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") | |
- name: Commit latest release version | |
if: steps.git-check.outputs.modified == 'true' | |
run: | | |
git config --global user.name 'anujshah' | |
git config --global user.email '[email protected]' | |
git commit -am "New release version" | |
git push |