Skip to content

Commit

Permalink
Fix nvmrc issue on action (#68)
Browse files Browse the repository at this point in the history
* chore: remove using of `.nvmrc` in action

* chore: remove super-linter

* chore: remove double `run` from info

* chore: add setup-python action for Python 3.x
  • Loading branch information
MishaKav authored May 13, 2024
1 parent 0063b56 commit 1778ceb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 55 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ jobs:
- TypeScript

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/linter.yml

This file was deleted.

6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ runs:
steps:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
node-version: 20.12.2

- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Create GitStream folder
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ export async function run(): Promise<void> {

try {
core.info(`gitstream-core ${version}`)
RulesEngine().run()
await RulesEngine().run()
} catch (error) {
// Fail the workflow run if an error occurs
if (error instanceof Error) {
core.setFailed(error.message)
}
}
}

run()

0 comments on commit 1778ceb

Please sign in to comment.