forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): skip commit parity for bots
Primary Changes --------------- 1. Updated the workflow to include a skip when the PR author is dependabot 2. Updated the pr-commit parity script to include Levenshtein Distance string metric instead of importing a package to reduce workflow runtime Changes required to incorporate 1) 3. Updated workflows/pr-commit-parity.yaml with a conditional statement Changes required to incorporate 2) 4. Updated the script with the functions, levensheteinDistance and stringSimilarity to have the required functionality 5. Updated the package.json with removal of the package dependency of string-similarity-js 6. Updated the workflow and removed steps to parse the project, thus reducing workflow runtime Fixes hyperledger-cacti#3469 Signed-off-by: jagpreetsinghsasan <[email protected]>
- Loading branch information
jagpreetsinghsasan
committed
Sep 5, 2024
1 parent
bdc5cd7
commit b6da739
Showing
4 changed files
with
47 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,26 +18,10 @@ jobs: | |
pr-commit-parity: | ||
name: PR and Commit messages Parity | ||
runs-on: ubuntu-22.04 | ||
if: "!contains('dependabot[bot]', github.event.pull_request.user.login)" | ||
env: | ||
ACCEPTABLE_SIMILARITY_RATIO: 0.9 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Install Indy SDK | ||
run: > | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \ | ||
&& sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable" \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
libindy \ | ||
libnullpay \ | ||
libvcx \ | ||
indy-cli \ | ||
&& sudo rm -f /etc/apt/sources.list.d/sovrin.list* | ||
- name: Set up NodeJS ${{ env.NODEJS_VERSION }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODEJS_VERSION }} | ||
- run: npm run configure | ||
|
||
- name: Execute pr-commit-parity script | ||
run: node tools/pr-commit-parity.js ${{ github.event.pull_request.url }} "$ACCEPTABLE_SIMILARITY_RATIO" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters