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

Fix nvmrc issue on action #68

Merged
merged 4 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()