-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add action - expect to trigger check
- Loading branch information
1 parent
aa22509
commit 21745c2
Showing
3 changed files
with
76 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,26 @@ | ||
# Changelog | ||
|
||
## 1.0.0 (2024-11-28) | ||
|
||
|
||
### 🎉 Features | ||
|
||
* add argo-lint and install-argo-cli action ([#171](https://github.com/grafana/shared-workflows/issues/171)) ([d848da2](https://github.com/grafana/shared-workflows/commit/d848da21d310b2a847a73457059b5a2d93d9f154)) | ||
|
||
|
||
### 🐛 Bug Fixes | ||
|
||
* **argo-lint:** fallback to hardcode action repo ([#213](https://github.com/grafana/shared-workflows/issues/213)) ([c663230](https://github.com/grafana/shared-workflows/commit/c6632305ef48112fe6b1aad26ecf2b32a743bda9)) | ||
|
||
|
||
### 🔧 Miscellaneous Chores | ||
|
||
* **deps:** update actions/checkout action to v4.1.7 ([#244](https://github.com/grafana/shared-workflows/issues/244)) ([1d5fba5](https://github.com/grafana/shared-workflows/commit/1d5fba52e7cb2780dfd1af758e1d84e35ce6e8f7)) | ||
* **deps:** update actions/checkout action to v4.2.0 ([#313](https://github.com/grafana/shared-workflows/issues/313)) ([ba6268c](https://github.com/grafana/shared-workflows/commit/ba6268c6beef0ab5b461f45eef4cfe1b4e6d6013)) | ||
* **deps:** update actions/checkout action to v4.2.1 ([#445](https://github.com/grafana/shared-workflows/issues/445)) ([c72e039](https://github.com/grafana/shared-workflows/commit/c72e039d656ea7db5cbcfd98dffd0f8554e1f029)) | ||
* **deps:** update actions/checkout action to v4.2.2 ([#498](https://github.com/grafana/shared-workflows/issues/498)) ([7c6dbe2](https://github.com/grafana/shared-workflows/commit/7c6dbe23c5fd8f3ab5863fb0e3f9d95de621b746)) | ||
|
||
|
||
### ♻️ Code Refactoring | ||
|
||
* **setup-argo:** refactor following feedback ([#215](https://github.com/grafana/shared-workflows/issues/215)) ([64a196a](https://github.com/grafana/shared-workflows/commit/64a196a127bcfe135cf6152a387db2024efc3044)) |
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,16 @@ | ||
# Lint Argo | ||
|
||
Shared workflow to lint Argo workflow files. | ||
|
||
## Example | ||
|
||
<!-- x-release-please-start-version --> | ||
|
||
``` | ||
uses: grafana/shared-workflows/actions/[email protected] | ||
with: | ||
path: /path/to/files # Paths to files for linting | ||
``` | ||
|
||
<!-- x-release-please-end-version --> |
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,34 @@ | ||
name: Lint Argo Workflow files | ||
description: Lint Argo workflow files | ||
|
||
inputs: | ||
path: | ||
description: | | ||
Path to files for linting. | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Checkout | ||
env: | ||
# In a composite action, these two need to be indirected via the | ||
# environment, as per the GitHub actions documentation: | ||
# https://docs.github.com/en/actions/learn-github-actions/contexts | ||
action_repo: "${{ github.action_repository || 'grafana/shared-workflows' }}" | ||
action_ref: ${{ github.action_ref }} | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
repository: ${{ env.action_repo }} | ||
ref: ${{ env.action_ref }} | ||
path: _shared-workflows-argo-lint | ||
|
||
- name: Setup Argo | ||
uses: ./_shared-workflows-argo-lint/actions/setup-argo | ||
|
||
- name: Run | ||
env: | ||
WORKFLOW_PATH: ${{ inputs.path }} | ||
shell: bash | ||
run: argo lint --offline "${WORKFLOW_PATH}" |