Update keys #8995
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: Update keys | |
on: | |
schedule: | |
- cron: '13,43 * * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch the new E4 key | |
run: curl "https://e4-key.themoviearchive5408.workers.dev/" > $GITHUB_WORKSPACE/e4.json | |
- name: Fetch the new key | |
run: curl "https://raw.githubusercontent.com/Ciarands/vidsrc-keys/main/keys.json" > $GITHUB_WORKSPACE/vidplay.json | |
- name: Commit report | |
run: | | |
git config --global user.name 'BlackVid' | |
git config --global user.email '[email protected]' | |
if git commit -am "Updated keys"; then | |
git push | |
else | |
echo No changes | |
fi | |