-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created an action that builds and gerated the completion script for ohmyzsh plugin using the inbuilt cobra engine updated makefile so as to make it easier to interact with this action and generate the script
- Loading branch information
1 parent
6d65ab1
commit 7c9d3c4
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Generate ohmyzsh completion | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.go" | ||
push: | ||
branches: | ||
- main | ||
- release/v* | ||
- "**.go" | ||
jobs: | ||
gen-completion-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20" | ||
check-latest: true | ||
- name: Generate completion file | ||
run: make gen-completion | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: Add ohmyzsh completion plugin | ||
title: "chore: update ohmyzsh completion plugin" | ||
body: > | ||
This PR is auto-generated by | ||
[create-pull-request](https://github.com/peter-evans/create-pull-request). | ||
labels: automated pr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters