From b57378457de4a70fadcd095e05fc314433fe7735 Mon Sep 17 00:00:00 2001 From: Sander Ploegsma Date: Thu, 1 Feb 2024 14:53:50 +0100 Subject: [PATCH] Sync org wide files (#2706) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🤖 Sync org-wide files to upstream repo More info: https://github.com/exercism/org-wide-files/commit/bfc6fe525e057a43f41e4fd83dfac00569d14086 * Restore configlet workflow, prevent future updates --------- Co-authored-by: Exercism Bot <66069679+exercism-bot@users.noreply.github.com> --- .github/org-wide-files-config.toml | 2 ++ .github/workflows/configlet.yml | 1 - .github/workflows/no-important-files-changed.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .github/org-wide-files-config.toml diff --git a/.github/org-wide-files-config.toml b/.github/org-wide-files-config.toml new file mode 100644 index 000000000..577840e35 --- /dev/null +++ b/.github/org-wide-files-config.toml @@ -0,0 +1,2 @@ +[configlet] +fmt = true diff --git a/.github/workflows/configlet.yml b/.github/workflows/configlet.yml index 19525bff5..c730b5820 100644 --- a/.github/workflows/configlet.yml +++ b/.github/workflows/configlet.yml @@ -14,5 +14,4 @@ jobs: configlet: uses: exercism/github-actions/.github/workflows/configlet.yml@main with: - lint: true fmt: true diff --git a/.github/workflows/no-important-files-changed.yml b/.github/workflows/no-important-files-changed.yml index 39a655174..26b068bc4 100644 --- a/.github/workflows/no-important-files-changed.yml +++ b/.github/workflows/no-important-files-changed.yml @@ -57,6 +57,7 @@ jobs: if: steps.check.outputs.important_files_changed == 'true' uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea with: + github-token: ${{ github.token }} script: | const body = "This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.\n\nIf this PR does **not** affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), **please add the following to the merge-commit message** which will stops student's tests from re-running. Please copy-paste to avoid typos.\n```\n[no important files changed]\n```\n\n For more information, refer to the [documentation](https://exercism.org/docs/building/tracks#h-avoiding-triggering-unnecessary-test-runs). If you are unsure whether to add the message or not, please ping `@exercism/maintainers-admin` in a comment. Thank you!" github.rest.issues.createComment({