Skip to content

forgot action env vars #8

forgot action env vars

forgot action env vars #8

Workflow file for this run

name: Check Octez version
on:
schedule:
- cron: '0 0 * * *'
# REMOVE
push:
branches:
- aux/octez-version-checker
jobs:
octez_version:
name: Check the latest Octez release
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Install python-requests
run: sudo apt-get install python3-requests
- name: Check the latest Octez release
run: python3 octez_version.py
- name: Create a PR for new version
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export OCTEZ_VERSION=$(cat octez_version)
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git branch -D octez-$OCTEZ_VERSION
git checkout -b octez-$OCTEZ_VERSION
git add .
git commit -m "Update Octez binaries to $OCTEZ_VERSION"
git push --force origin octez-$OCTEZ_VERSION
gh pr create --title "Update Octez binaries to $OCTEZ_VERSION" --body "This PR updates the Octez binaries to the latest version $OCTEZ_VERSION" --base master --head octez-$OCTEZ_VERSION