From bed2aa0a3f6d5d9e0678fd900c01195ffb3298e0 Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 22:17:26 -0700 Subject: [PATCH 01/14] Create ci.yml --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eac41c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - name: Run markdown lint + run: | + npm install remark-cli remark-preset-lint-consistent + npx remark . --use remark-preset-lint-consistent --frail From a048e6f14fd68c6c34734b6ddb5311d48bb1692f Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 31 Oct 2022 05:17:36 +0000 Subject: [PATCH 02/14] Update to 2 in STEP and README.md --- .github/script/STEP | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/script/STEP b/.github/script/STEP index d00491f..0cfbf08 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -1 +2 diff --git a/README.md b/README.md index 05a44e7..a56fec7 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ endstep0--> Encourage users to open new tabs for steps! --> -
+

Step 1: Add a test workflow

_Welcome to "GitHub Actions: Continuous Integration"! :wave:_ @@ -95,7 +95,7 @@ First, let's add a workflow to lint our Markdown files in this repository. Define terms and link to docs.github.com. --> -
+

Step 2: Fix the test

_Great job adding the templated workflow! :tada:_ From f00dd6d3b3eea885bce1fb7e33f0caa43525ee8b Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 22:28:29 -0700 Subject: [PATCH 03/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eac41c8..05a42df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,4 @@ jobs: - name: Run markdown lint run: | npm install remark-cli remark-preset-lint-consistent - npx remark . --use remark-preset-lint-consistent --frail + npx remark . --use _remark-preset-lint-consistent_ --frail From 70c11827ee3fdcec206a58351c26aebb2dc97aea Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 22:34:00 -0700 Subject: [PATCH 04/14] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05a42df..4a98e24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,5 @@ jobs: - uses: actions/checkout@v3 - name: Run markdown lint run: | - npm install remark-cli remark-preset-lint-consistent - npx remark . --use _remark-preset-lint-consistent_ --frail + npm install remark-cli remark-preset-lint_consistent_ + npx remark . --use remark-preset-lint-consistent --frail From 43cf9e233636d610adbf3f58f91ad8c97b686fc0 Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 22:46:17 -0700 Subject: [PATCH 05/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a98e24..825a036 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,5 @@ jobs: - uses: actions/checkout@v3 - name: Run markdown lint run: | - npm install remark-cli remark-preset-lint_consistent_ + npm install remark-cli _remark-preset-lint-consistent_ npx remark . --use remark-preset-lint-consistent --frail From ae4e988919b7653ea1d2a59917066425761653cd Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 22:53:53 -0700 Subject: [PATCH 06/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 825a036..4c5c613 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,5 @@ jobs: - uses: actions/checkout@v3 - name: Run markdown lint run: | - npm install remark-cli _remark-preset-lint-consistent_ + npm install remark-cli remark-lint remark-preset-lint-consistent npx remark . --use remark-preset-lint-consistent --frail From 6a44710e5b66952e8b86c2b3211ffc0f522e49ef Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:04:00 -0700 Subject: [PATCH 07/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c5c613..f086015 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,5 @@ jobs: - uses: actions/checkout@v3 - name: Run markdown lint run: | - npm install remark-cli remark-lint remark-preset-lint-consistent + npm install remark-cli remark_preset_lint_consistent npx remark . --use remark-preset-lint-consistent --frail From e2ffbc6d20856e7a7ba1d1c935387b73cae73813 Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:06:14 -0700 Subject: [PATCH 08/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f086015..50b79ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,5 @@ jobs: - uses: actions/checkout@v3 - name: Run markdown lint run: | - npm install remark-cli remark_preset_lint_consistent + npm install remark-cli remark-lint-emphasis-marker npx remark . --use remark-preset-lint-consistent --frail From 11091ebcfdd1bb3e31952cbc9fefdf1afef4a57b Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:07:21 -0700 Subject: [PATCH 09/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50b79ee..b45295e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,4 @@ jobs: - name: Run markdown lint run: | npm install remark-cli remark-lint-emphasis-marker - npx remark . --use remark-preset-lint-consistent --frail + npx remark . --use remark-lint-emphasis-marker --frail From af1fc96338319627c0b7092b73eb2ed663cb67fd Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:12:45 -0700 Subject: [PATCH 10/14] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b45295e..eac41c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,5 @@ jobs: - uses: actions/checkout@v3 - name: Run markdown lint run: | - npm install remark-cli remark-lint-emphasis-marker - npx remark . --use remark-lint-emphasis-marker --frail + npm install remark-cli remark-preset-lint-consistent + npx remark . --use remark-preset-lint-consistent --frail From 4886ce903d0b31f1ada70460ef8e9f961a5b325b Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:14:54 -0700 Subject: [PATCH 11/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eac41c8..f102a8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,4 @@ jobs: - name: Run markdown lint run: | npm install remark-cli remark-preset-lint-consistent - npx remark . --use remark-preset-lint-consistent --frail + npx remark . --use remark-preset-lint-emphasis-marker --frail From 7f8129615d8b3cd7958ea4f5a4307e5567e3fbe2 Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:15:52 -0700 Subject: [PATCH 12/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f102a8a..8e14f33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,4 @@ jobs: - name: Run markdown lint run: | npm install remark-cli remark-preset-lint-consistent - npx remark . --use remark-preset-lint-emphasis-marker --frail + npx remark . --use remark-lint-emphasis-marker --frail From 203d94877590dc87c7ed75ac0f0c0d4d80567803 Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:17:10 -0700 Subject: [PATCH 13/14] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e14f33..eac41c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,4 @@ jobs: - name: Run markdown lint run: | npm install remark-cli remark-preset-lint-consistent - npx remark . --use remark-lint-emphasis-marker --frail + npx remark . --use remark-preset-lint-consistent --frail From 5703b45055a35db795e2c5c3917a5f9477224f46 Mon Sep 17 00:00:00 2001 From: CristianAH <93352660+CristianAH@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:23:07 -0700 Subject: [PATCH 14/14] Update 2-fix-the-test.yml --- .github/workflows/2-fix-the-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/2-fix-the-test.yml b/.github/workflows/2-fix-the-test.yml index 9d5a3a8..e7e9270 100644 --- a/.github/workflows/2-fix-the-test.yml +++ b/.github/workflows/2-fix-the-test.yml @@ -17,8 +17,9 @@ on: # Reference https://docs.github.com/en/actions/security-guides/automatic-token-authentication permissions: # Need `contents: read` to checkout the repository + contents: read # Need `contents: write` to update the step metadata - contents: write + contents: write jobs: on_fix_test: