Skip to content

[FEATURE REQUEST] Not just work on pull request! #1

@mystichar

Description

@mystichar

Feature Summary

Make it so it doesnt error out on push requests!

Detailed Description

When I attempted to change the on pull request to on push, the references broke.

Run git config --global user.name github-actions
  git config --global user.name github-actions
  git config --global user.email github-actions@github.com
  git commit -m "chores(C4 diagrams): Update Structurizr diagrams"
  git push origin HEAD:${GITHUB_HEAD_REF}
  shell: bash --noprofile --norc -e -o pipefail {0}
  env:
    GIT_REF: dev
    CHANGES_EXIST: true
    GITHUB_TOKEN: ***
[dev 036b5c8] chores(C4 diagrams): Update Structurizr diagrams
 6 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 .documentation/diagrams/structurizr-Component-001-key.png
 create mode 100644 .documentation/diagrams/structurizr-Component-001.png
 create mode 100644 .documentation/diagrams/structurizr-Component-002-key.png
 create mode 100644 .documentation/diagrams/structurizr-Component-002.png
 create mode 100644 .documentation/diagrams/structurizr-SystemContext-001-key.png
 create mode 100644 .documentation/diagrams/structurizr-SystemContext-001.png
fatal: invalid refspec 'HEAD:'```

### Motivation and Benefits

It allows the image to be more versitilely used and integrated into more complex workflows.versatilely

### Possible Implementation

Easiest solution would seem to be to move all the commit/push code to the workflow instead of the image.

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions