Skip to content
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

feat(#467): ✨ hooks now within action inputs #489

Merged
merged 9 commits into from
Mar 5, 2024

Conversation

AndreasAugustin
Copy link
Owner

Description

Close #467

now possible to use hooks within action parameters.

e.g.

- name: Test action step
  uses: AndreasAugustin/actions-template-sync@v1
  with:
    source_repo_path: AndreasAugustin/template.git
    upstream_branch: main
    is_dry_run: true
    is_allow_hooks: true
    hooks: >
      prepull:
        commands:
          - echo 'hi, we are within the prepull phase'
          - echo 'maybe you want to do adjustments on the local code'

Remark

For automation please see closing-issues-using-keywords

@AndreasAugustin AndreasAugustin self-assigned this Mar 5, 2024
@AndreasAugustin AndreasAugustin added the enhancement New feature or request label Mar 5, 2024
@AndreasAugustin AndreasAugustin merged commit 0e55c08 into main Mar 5, 2024
6 checks passed
@AndreasAugustin AndreasAugustin deleted the feat/hooks_input branch March 5, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat]: Configure hooks directly in workflow step (i.e. without templatesync.yml)
1 participant