You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May someone please have a look at this simplified setup and could tell me any reason, why it never triggers your workflow?!
In a first workflow, some images are created or updated. In that same workflow, this are last two steps, to commit and push the changes and create a PR out of it.
While in a second worklfow, I've almost identical one of your workflow examples.
name: Compress Imageson:
push:
branches:
- 'fix/screenshots-**'pull_request:
# Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed.# See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths for reference.paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.webp'jobs:
build:
# Only run on Pull Requests within the same repository, and not from forks.# TEMP DISABLED TO TEST # if: github.event.pull_request.head.repo.full_name == github.repositoryname: calibreapp/image-actionspermissions: write-allruns-on: ubuntu-lateststeps:
- name: Checkout Repouses: actions/checkout@v4
- name: Compress Imagesuses: calibreapp/image-actions@main #main is regularly updated (until 09/2024 so far), while the latest tagged version is from 2020with:
# Configuration could be added# https://github.com/marketplace/actions/image-actions#%EF%B8%8F-configuration## The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissionsgithubToken: ${{ secrets.GITHUB_TOKEN }}
What could be the reason, this never starts?
Thanks for this great action & thanks in advance of your answer.
The text was updated successfully, but these errors were encountered:
Hey @carstingaxion, apologies for the delay in getting back to you.
Looking at your configuration, two details pop out to me:
Branch configuration restricts to running on branches named fix/screenshots-**. Is your PR using that branch pattern?
on:
push:
branches:
- 'fix/screenshots-**'
File matcher filtering restricts to running on PRs where image files have been edited. If you haven't added/edited/removed any jpg, webp, png etc, then this action won't run.
pull_request:
# Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed.
# See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths for reference.
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.webp'
To debug I would recommend altering both or either of these two blocks and experimenting with the results. On your PR you can click checks to see checks that were run or skipped for your PR. There's also a global repository actions view that might also be helpful to debug.
Hello developers of this nice action!
May someone please have a look at this simplified setup and could tell me any reason, why it never triggers your workflow?!
In a first workflow, some images are created or updated. In that same workflow, this are last two steps, to commit and push the changes and create a PR out of it.
While in a second worklfow, I've almost identical one of your workflow examples.
What could be the reason, this never starts?
Thanks for this great action & thanks in advance of your answer.
The text was updated successfully, but these errors were encountered: