Skip to content

Commit

Permalink
Add action - expect to trigger check
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirakis committed Nov 29, 2024
1 parent aa22509 commit 21745c2
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
26 changes: 26 additions & 0 deletions actions/argo-lint-new/CHANGELOG.md
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))
16 changes: 16 additions & 0 deletions actions/argo-lint-new/README.md
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 -->
34 changes: 34 additions & 0 deletions actions/argo-lint-new/action.yaml
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}"

0 comments on commit 21745c2

Please sign in to comment.