gautamkrishnar/keepalive-workflow

run failed

Closed this issue · 1 comments

i have a workflow that runs once per day and today i got this

image

here is my workflow file (there are no other workflows on the repo)

name: Compile

on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *'

jobs:

  update:
    name: Update
    runs-on: ubuntu-latest
    permissions:
      contents: write

    steps:
      - name: node
        uses: actions/setup-node@v3
        with:
          node-version: latest

      - uses: actions/checkout@v4

      - name: lzip
        run: sudo apt install -y lzip

      - id: check
        name: check
        run: node build.js | tee out.txt; echo "RESULT=$(tail out.txt -n 1)" >> $GITHUB_OUTPUT; rm out.txt

      - name: commit
        if: steps.check.outputs.RESULT == 'Done'
        uses: stefanzweifel/git-auto-commit-action@v5

      - name: keepalive
        uses: gautamkrishnar/keepalive-workflow@v2

@timotejroiko Please follow the example correctly: https://github.com/gautamkrishnar/keepalive-workflow?tab=readme-ov-file#how-to-use

you do not have required permissions set change:

name: Compile
on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *'

jobs:
  update:
    name: Update
    runs-on: ubuntu-latest
    permissions:
      contents: write

to

name: Compile
on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *'

jobs:
  update:
    name: Update
    runs-on: ubuntu-latest
    permissions:
      contents: write
      actions: write