चर्चा » Greasy Fork镜像 Feedback

[GreasyFork Bug Report] Webhook not working for my GitHub workflow push

§
पोस्ट केले: 2023-05-14
संपादित केले: 2023-05-14

I am using workflow to automatic generate the userscript based on my template.

      - name: Commit and push changes
        if: steps.version-check.outputs.has_changed == 'true'
        run: |
          git config --global user.name "github-actions[bot]"
          git config --global user.email "github-actions[bot]@users.noreply.github.com"
          git push origin --delete generated-files
          git checkout -B generated-files
          git add generated/Tabview-Youtube.user.js
          git commit -m "Userscript Generation" -m "This is automatically generated by GitHub Actions."
          git push -u origin generated-files

In GitHub, it will delete the branch generated-files and recreate the branch generated-files with the xxx.user.js

Webhook is generated in git push -u origin generated-files as per GitHub's logging, and it successfully sent to GreasyFork ("tick" mark). However, GreasyFork cannot automatically update the script, until I press "update and sync" in the admin panel.

I guess it is due to the commit is adding a file rather than modifying a file?

§
पोस्ट केले: 2023-05-14
संपादित केले: 2023-05-14

Confirmed. The bug is that, it triggers only for Push Event with Modified.
Please mention in the webhook description.

I modified my workflow script to make it become "modified" instead of "added"

JasonBarnabeनियामक
§
पोस्ट केले: 2023-05-17

Wouldn't consider that a bug... your setup seems pretty unusual. In any case, I've specified in the documentation that it's only looking for modified files.

उत्तर पोस्ट करा

उत्तर पोस्ट करण्यासाठी साइन इन करा.

长期地址
遇到问题?请前往 GitHub 提 Issues。