NoAds Lists update #330
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/checkout@v3 | |
- name: Set Timezone ⌚ | |
uses: szenius/[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: | |
ftp-server: ${{ secrets.ftp_server }} | |
ftp-username: ${{ secrets.ftp_username }} | |
ftp-password: ${{ secrets.ftp_password }} | |
local-dir: ./lists/ |