vyper-builds #1040
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: vyper-builds | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
schedule: | |
# every 3 hours on the 19th minute | |
- cron: "19 */3 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Install python dependencies | |
run: pip install -r requirements.txt | |
- name: Configure git | |
run: | | |
git config --global user.name "vyper commit bot" | |
git config --global user.email "[email protected]" | |
- name: Checkout the 'builds' branch | |
run: | | |
git checkout builds | |
git merge main | |
- name: Fetch | |
id: fetch | |
run: | | |
python fetch.py | tee fetched_thru.txt | |
echo "THROUGH=$(cat fetched_thru.txt)" >> "$GITHUB_ENV" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
continue-on-error: true | |
- name: Commit and push | |
run: | | |
git add all-commits/ releases/ | |
# swallow git "nothing added to commit" error; we might have | |
# a merge commit which we want to push. | |
git commit -m "add binaries ${{ env.THROUGH }}" || echo "no new binaries" 1>&2 | |
git push |