From 36435161237cc7d30e56af09ecbfbf30733eb554 Mon Sep 17 00:00:00 2001
From: Jeff Dickey <216188+jdx@users.noreply.github.com>
Date: Sat, 16 Mar 2024 15:14:00 -0500
Subject: [PATCH] ci: set GITHUB_TOKEN to cause linting modifications to
trigger CI
---
.github/workflows/mega-linter.yml | 4 ++--
.github/workflows/test.yml | 1 +
.idea/mise.iml | 1 +
test/fixtures/signal-test.js | 16 ++++++++--------
tests/cli/data/configs/.config/mise/source.sh | 0
5 files changed, 12 insertions(+), 10 deletions(-)
mode change 100644 => 100755 tests/cli/data/configs/.config/mise/source.sh
diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml
index 35f70d29d..168303ede 100644
--- a/.github/workflows/mega-linter.yml
+++ b/.github/workflows/mega-linter.yml
@@ -55,7 +55,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
- token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
+ token: ${{ secrets.RTX_GITHUB_BOT_TOKEN || secrets.GITHUB_TOKEN }}
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
# improve performance
@@ -120,7 +120,7 @@ jobs:
) &&
!contains(github.event.head_commit.message, 'skip fix')
with:
- token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
+ token: ${{ secrets.RTX_GITHUB_BOT_TOKEN || secrets.GITHUB_TOKEN }}
commit-message: "[MegaLinter] Apply linters automatic fixes"
title: "[MegaLinter] Apply linters automatic fixes"
labels: bot
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 99c49879b..ace259f4f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -26,6 +26,7 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
+ token: ${{ secrets.RTX_GITHUB_BOT_TOKEN || github.token }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: unit
diff --git a/.idea/mise.iml b/.idea/mise.iml
index 47c629d52..26265d4cb 100644
--- a/.idea/mise.iml
+++ b/.idea/mise.iml
@@ -11,6 +11,7 @@
+
diff --git a/test/fixtures/signal-test.js b/test/fixtures/signal-test.js
index 35032637a..c202b1fe0 100644
--- a/test/fixtures/signal-test.js
+++ b/test/fixtures/signal-test.js
@@ -1,14 +1,14 @@
-let i = 3
+let i = 3;
-process.on('SIGINT', function () {
+process.on("SIGINT", function () {
if (i > 0) {
- console.log(`Got SIGINT. Press Control-D to exit. ${i} times left`)
- i--
+ console.log(`Got SIGINT. Press Control-D to exit. ${i} times left`);
+ i--;
} else {
- process.exit()
+ process.exit();
}
-})
+});
// wait for 60 seconds
-setTimeout(function () {}, 60000)
-console.log('Running. Press Control-C to test.')
+setTimeout(function () {}, 60000);
+console.log("Running. Press Control-C to test.");
diff --git a/tests/cli/data/configs/.config/mise/source.sh b/tests/cli/data/configs/.config/mise/source.sh
old mode 100644
new mode 100755