Skip to content

Commit

Permalink
[FIX] actions/checkout version in GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Sep 20, 2023
1 parent a6f80d7 commit 8de83e3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/automated-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Install redis
run: sudo apt-get install -y redis-tools redis-server
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
#
# steps:
# - name: Checkout
# uses: actions/checkout@main
# uses: actions/checkout@v4
#
# - name: Install redis
# run: sudo apt-get install -y redis-tools redis-server
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/potential-duplicates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# https://github.com/wow-actions/potential-duplicates

name: Potential Duplicates

on:
issues:
types: [opened, edited]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/potential-duplicates@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Issue title filter work with anymatch https://www.npmjs.com/package/anymatch.
# Any matched issue will stop detection immediately.
# You can specify multi filters in each line.
filter: ''
# Exclude keywords in title before detecting.
exclude: ''
# Label to set, when potential duplicates are detected.
label: potential-duplicate
# Get issues with state to compare. Supported state: 'all', 'closed', 'open'.
state: all
# If similarity is higher than this threshold([0,1]), issue will be marked as duplicate.
threshold: 0.6
# Reactions to be add to comment when potential duplicates are detected.
# Available reactions: "-1", "+1", "confused", "laugh", "heart", "hooray", "rocket", "eyes"
reactions: 'eyes, confused'
# Comment to post when potential duplicates are detected.
comment: >
Potential duplicates: {{#issues}}
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
{{/issues}}
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand Down

0 comments on commit 8de83e3

Please sign in to comment.