lcp1 #634
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: lcp1 | |
on: | |
schedule: | |
- cron: '20 7,13,21 * * *' | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
inject_replace: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout freeiptv | |
uses: actions/checkout@v2 | |
- name: Fetch Content | |
id: fetch_content | |
env: | |
PRIVATE_REPO_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }} | |
run: | | |
content=$(curl -H "Authorization: token $PRIVATE_REPO_TOKEN" -H "Accept: application/vnd.github.v3.raw" "https://raw.githubusercontent.com/ipstreet312/myrep/main/ressources/lcp.m3u8") | |
echo "$content" > ressources/dmotion/py/lcpan/lcp1.m3u8 | |
- name: Commit and Push Changes | |
run: | | |
git config --local user.name "lcp1 Action" | |
git config user.email "<>" | |
git pull | |
git add ressources/dmotion/py/lcpan/lcp1.m3u8 | |
git commit -m "lcp1 updated" | |
git push |