From 87d5a7a679279cc99514bc7963a7b55fcba71130 Mon Sep 17 00:00:00 2001 From: Datpmt Date: Sun, 8 Dec 2024 07:53:24 +0700 Subject: [PATCH 1/6] update action.yml --- .github/workflows/typocop.yml | 10 ---------- action.yml | 12 +++++++++++- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/typocop.yml b/.github/workflows/typocop.yml index d9ed992..c2b0ae4 100644 --- a/.github/workflows/typocop.yml +++ b/.github/workflows/typocop.yml @@ -12,16 +12,6 @@ jobs: with: fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.14.0-alpha.1' - - - name: Install typos - run: | - python3 -m pip install --upgrade pip - pip install typos - - name: Run Typocop Action uses: ./ with: diff --git a/action.yml b/action.yml index 0a16177..81fc736 100644 --- a/action.yml +++ b/action.yml @@ -20,12 +20,22 @@ inputs: runs: using: 'composite' steps: + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.14.0-alpha.1' + + - name: Install typos + run: | + python3 -m pip install --upgrade pip + pip install typos + - name: Setup Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.1' - - name: Install dependencies + - name: Install Typocop run: | gem install typocop shell: bash From 54faf42f9ddbdf092f0b9a416c2fd2dd8d7c1203 Mon Sep 17 00:00:00 2001 From: Datpmt Date: Sun, 8 Dec 2024 07:54:02 +0700 Subject: [PATCH 2/6] test action --- test/example.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/example.rb b/test/example.rb index d192aa5..689a08a 100644 --- a/test/example.rb +++ b/test/example.rb @@ -4,6 +4,7 @@ def greeting(name) puts 'knowlege' # typo puts 'knowlege: languege' # typo puts 'welcom' + puts 'welcom' end greeting('Alice') From 8856a5dcc4244b9bf85b49b5a7e61e66babe03bf Mon Sep 17 00:00:00 2001 From: Datpmt Date: Sun, 8 Dec 2024 07:55:58 +0700 Subject: [PATCH 3/6] update action.yml --- action.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 81fc736..cecda76 100644 --- a/action.yml +++ b/action.yml @@ -21,14 +21,14 @@ runs: using: 'composite' steps: - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.14.0-alpha.1' + uses: actions/setup-python@v3 + with: + python-version: '3.14.0-alpha.1' - - name: Install typos - run: | - python3 -m pip install --upgrade pip - pip install typos + - name: Install typos + run: | + python3 -m pip install --upgrade pip + pip install typos - name: Setup Ruby uses: ruby/setup-ruby@v1 From a262dbbfe6e8ccef1a7805a75a76ff4ef42802e1 Mon Sep 17 00:00:00 2001 From: Datpmt Date: Sun, 8 Dec 2024 07:57:55 +0700 Subject: [PATCH 4/6] update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index cecda76..7324bb5 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,7 @@ runs: run: | python3 -m pip install --upgrade pip pip install typos + shell: bash - name: Setup Ruby uses: ruby/setup-ruby@v1 From 20707a753838784de16253191fcec1ce9083c0fa Mon Sep 17 00:00:00 2001 From: Datpmt Date: Sun, 8 Dec 2024 08:01:23 +0700 Subject: [PATCH 5/6] update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7324bb5..aa3b283 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,7 @@ inputs: description: 'Pull Request ID' required: true github_base_ref: - description: 'GitHub Base Reference' + description: 'GitHub Base Ref' required: true runs: From 58aba16b79c270d4a546a796fe5d001687b9550a Mon Sep 17 00:00:00 2001 From: Datpmt Date: Sun, 8 Dec 2024 08:01:53 +0700 Subject: [PATCH 6/6] test action --- test/example.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/test/example.rb b/test/example.rb index 689a08a..d192aa5 100644 --- a/test/example.rb +++ b/test/example.rb @@ -4,7 +4,6 @@ def greeting(name) puts 'knowlege' # typo puts 'knowlege: languege' # typo puts 'welcom' - puts 'welcom' end greeting('Alice')