Skip to content

Only push workflow updates after commit#74

Merged
sidey79 merged 1 commit into
mainfrom
codex/conditional-workflow-push
May 12, 2026
Merged

Only push workflow updates after commit#74
sidey79 merged 1 commit into
mainfrom
codex/conditional-workflow-push

Conversation

@sidey79
Copy link
Copy Markdown
Collaborator

@sidey79 sidey79 commented May 12, 2026

Summary

  • record whether the workflow update step actually created a commit
  • run the repository push action only when that commit exists

Motivation

The previous workflow always ran the push step, even when the commit step did not create a commit. In environments where the workflow actor does not have push permissions, that caused the pipeline to fail unnecessarily.

Validation

  • parsed .github/workflows/fhem_test.yml with Python YAML loader

@sidey79 sidey79 changed the title [codex] Only push workflow updates after commit Only push workflow updates after commit May 12, 2026
@sidey79 sidey79 marked this pull request as ready for review May 12, 2026 20:42
@sidey79 sidey79 merged commit 341dee5 into main May 12, 2026
7 checks passed
@sidey79 sidey79 deleted the codex/conditional-workflow-push branch May 12, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant