technote-space / toc-generator

GitHub Actions to generate TOC (Table of Contents)
MIT License
221 stars 29 forks source link

CREATE_PR doesnt seem to be working with `on:push` #380

Open guergana opened 1 year ago

guergana commented 1 year ago

Describe the bug: バグの概要

The action creates a commit properly but given the flag CREATE_PR it doesn't create a PR with the ToC. This was tested when pushing to a specific folder. I don't know if the CREATE_PR flag is working when no folder is specified.

To Reproduce: 再現手順

Steps to reproduce the behavior:

  1. Create a workflow that uses the CREATE_PR flag:
    
    name: Update Table of Contents (ToC)

on: push: paths:

jobs: generateTOC: name: TOC Generator runs-on: ubuntu-latest steps:

Expected behavior: 期待する動作

A PR is opened with on:push event.

The flag works with on:pull_request event.

Additional context: 補足

This was tested on the following PR: https://github.com/wmde/wikidata-mismatch-finder/pull/720

welcome[bot] commented 1 year ago

:raised_hands: Thanks for opening your first issue here! Be sure to follow the issue template!