New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when nothing to commit #177
Comments
Thanks for reporting! Currently can't figure out what the problem here is. Will have a closer look over the days. |
@GmBodhi Unfortunately I can't reproduce your issue. In f6048aa I've added a test that covers your exact use case (I think?). Hover, the test passes without throwing errors. Could you share more about your use case? Pasting your workflow here would probably help. |
Actually, I have hundreds of files. Probably 300 I guess.
|
name: Example
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
jobs:
Example:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node v14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install Dependencies
run: yarn install
- name: Run Config
run: yarn run config
- name: Generate examples
run: |
cd example-processor
node index.js
- name: Generate Config
run: |
cd example-processor
node generateConfig.js
- name: Format Code
run: |
npm i prettier -g
git pull -a
prettier --write .
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "automated: Examples generated (actions)"
file_pattern: "."
skip_dirty_check: false
skip_fetch: false That |
It's for |
This is an example: https://github.com/GmBodhi/create-three-app/runs/3708857982 |
@GmBodhi Thanks for the links and your workflow file. The problem seems to be related to the OS you're running your jobs on: Windows. I have written I've forked your project and updated the Workflow file to run on The run was successful and the Action created a commit: https://github.com/stefanzweifel/create-three-app/commit/3111fd6e89b12141421b1258b32993717f4ed185 Please update your Workflow file like this: -runs-on: windows-latest
+runs-on: ubuntu-latest I will update the README shortly to mention that the Action is not compatible with Windows. |
Okay, thank you. |
https://github.com/release-drafter/release-drafter/runs/4890119635?check_suite_focus=true#step:7:35 This fails on ubuntu 😓
One way to fix it is: git diff-index --quiet HEAD || git commit -m 'bla' Or git commit -m 'bla' || true |
Version of the Action
v4
Describe the bug
Whenever local is up to date with origin the process fails and resulting in this error:
To Reproduce
Steps to reproduce the behavior:
Try to commit without making any changes.
Expected behavior
The process shouldn't fail and resulting in a workflow failure unless we specify to ignore the error
Screenshots
Used Workflow
The text was updated successfully, but these errors were encountered: