This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Update vanilla versions #418
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 vanilla versions" | |
on: | |
schedule: | |
- cron: "0 0 * * *" # Every day at midnight | |
workflow_dispatch: | |
push: | |
paths: | |
- ".github/workflows/update_vanilla.yml" | |
- "manifest_composer.py" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
- name: Install w3 | |
run: | | |
sudo npm install -g @web3-storage/w3 | |
- name: Login to Web3.Storage | |
run: | | |
echo "${{ secrets.WEB3_STORAGE }}" | w3 token | |
- name: Install dependencies | |
run: | | |
pip install requests tqdm | |
- name: Update vanilla versions | |
continue-on-error: true | |
run: | | |
python manifest_composer.py | |
- name: Commit changes | |
continue-on-error: true | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Bot" | |
git add . | |
git commit -m "Update vanilla versions" | |
- name: Push changes | |
continue-on-error: true | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |