Skip to content

allow workflow to write to contents #3

allow workflow to write to contents

allow workflow to write to contents #3

Workflow file for this run

name: update stock.txt
on:
push:
branches: ["main"]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: update stock.txt
run: ./scripts/compute_stock.sh stocktaking.csv > stock.txt
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: updated stock.txt with latest numbers