Skip to content

performing http request to get a text file and commiting it with a squash #43576

performing http request to get a text file and commiting it with a squash

performing http request to get a text file and commiting it with a squash #43576

Workflow file for this run

name: fetch-web-data-dist
run-name: performing http request to get a text file and commiting it with a squash
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '*/20 * * * *'
jobs:
get-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'gh-pages'
ssh-key: ${{secrets.SOF_REACT_DEPLOY_KEY}}
fetch-depth: 0
- run: |
git config user.email '<>'
git config user.name 'sof-react-bot'
- name: Get the Web Data
run: |
sudo apt install wget
sudo apt clean
sudo rm -rf /var/lib/apt/lists/*
mkdir -p api
wget http://sof1.megalag.org/text/server-list.txt -O ./api/serverlist.txt
git add api/serverlist.txt
- run: git commit --amend --no-edit || true
- run: git push -f origin HEAD:gh-pages