Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2021-10-07 18:01:25 +03:00
parent 223268f078
commit c5ace8aadc

View file

@ -29,36 +29,36 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Run Grabber - name: Run Grabber
run: node scripts/grab.js --channels=sites/${{ matrix.country }}.channels.xml --output=.gh-pages/guides/${{ matrix.country }}.guide.xml --days=${{ matrix.days }} run: node scripts/grab.js --channels=channels/${{ matrix.country }}.channels.xml --output=.gh-pages/guides/${{ matrix.country }}.guide.xml --days=${{ matrix.days }}
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: .gh-pages name: .gh-pages
path: .gh-pages/guides/${{ matrix.site }}.guide.xml path: .gh-pages/guides/${{ matrix.site }}.guide.xml
if-no-files-found: error if-no-files-found: error
# deploy: deploy:
# if: ${{ github.ref == 'refs/heads/master' }} if: ${{ github.ref == 'refs/heads/master' }}
# needs: grab needs: grab
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - name: Checkout - name: Checkout
# uses: actions/checkout@v2 uses: actions/checkout@v2
# - name: Download Artifacts - name: Download Artifacts
# uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
# - name: Generate Token - name: Generate Token
# uses: tibdex/github-app-token@v1 uses: tibdex/github-app-token@v1
# id: generate-token id: generate-token
# with: with:
# app_id: ${{ secrets.APP_ID }} app_id: ${{ secrets.APP_ID }}
# private_key: ${{ secrets.APP_PRIVATE_KEY }} private_key: ${{ secrets.APP_PRIVATE_KEY }}
# - name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
# uses: JamesIves/github-pages-deploy-action@4.1.1 uses: JamesIves/github-pages-deploy-action@4.1.1
# with: with:
# branch: gh-pages branch: gh-pages
# folder: .gh-pages folder: .gh-pages
# target-folder: guides target-folder: guides
# clean: false clean: false
# token: ${{ steps.generate-token.outputs.token }} token: ${{ steps.generate-token.outputs.token }}
# git-config-name: iptv-bot git-config-name: iptv-bot
# git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com
# commit-message: '[Bot] Deploy to GitHub Pages' commit-message: '[Bot] Deploy to GitHub Pages'