NoAds Lists update #776
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: NoAds Lists update | |
on: | |
schedule: | |
- cron: '00 10 * * *' | |
workflow_dispatch: | |
jobs: | |
noads_lists: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set Timezone ⌚ | |
uses: MathRobin/[email protected] | |
with: | |
timezoneLinux: "Europe/Rome" | |
- name: Update lists ☣️ | |
run: | | |
sh ./sh/datetime.sh | |
sh ./sh/download.sh | |
git config --local user.email "[email protected]" | |
git config --local user.name "GWall[bot]" | |
git add lists/* | |
git commit -m "Aggiornamento liste del ${{ env.checkwebsite }}" -a | |
- name: Push changes 🚀 | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
- name: Copy to FTP 🔌 | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.ftp_server }} | |
username: ${{ secrets.ftp_username }} | |
password: ${{ secrets.ftp_password }} | |
local-dir: ./lists/ |