Update Contract #14
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 Tutorials | |
on: | |
schedule: | |
# Runs at 05:00 UTC every day | |
- cron: "0 5 * * *" | |
workflow_dispatch: | |
inputs: | |
input1: | |
description: "Input 1 Description" | |
required: true | |
default: "default value" | |
jobs: | |
my_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Get version | |
id: versions_step | |
run: | | |
version_tag=$(node ./.github/scripts/fetchRelease.js) | |
echo "Output from Node.js script: $version_tag" | |
- name: Check and update tutorials | |
run: bash ./update_contract.sh $version_tag | |
- name: Commit and push changes | |
run: | | |
git config --global user.email "jc@joshcrites.com" | |
git config --global user.name "Josh" | |
git add . | |
git commit -m "Automated changes" -a || echo "No changes to commit" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |