-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce legitify github action (#93)
add legitify github action
- Loading branch information
1 parent
ffaff8f
commit f92f060
Showing
1,218 changed files
with
213,704 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Legitify Analyze" | ||
description: "Legitify GitHub Action" | ||
inputs: | ||
github_token: | ||
description: "GitHub Personal Access Token" | ||
required: true | ||
analyze_self_only: | ||
description: "If this is set, only the repo where this action is called from will be analyzed" | ||
required: false | ||
default: "false" | ||
repositories: | ||
description: "Strings of owner/repo. If this is set, only selected repositories will be analyzed" | ||
required: false | ||
legitify_base_version: | ||
description: "The base version of legitify to use. Non breaking changes will be auto updated." | ||
required: false | ||
default: "0.1" | ||
runs: | ||
using: "node16" | ||
main: "index.js" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Analyze two specific repositories: 'owner1/repo1' and 'owner1/repo2' | ||
name: Legitify Analyze | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Runs "At 11:00 on every day-of-week from Monday through Friday" | ||
- cron: "0 11 * * 1-5" | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Legitify Action | ||
uses: Legit-Labs/legitify@main # it is recommended to use a specific commit hash | ||
with: | ||
github_token: ${{ secrets.PAT_FOR_LEGITIFY }} | ||
repositories: owner1/repo1 owner1/repo2 |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This is the default behavior, will analyze the organization from which the action is running from. | ||
name: Legitify Analyze | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Runs "At 11:00 on every day-of-week from Monday through Friday" | ||
- cron: "0 11 * * 1-5" | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Legitify Action | ||
uses: Legit-Labs/legitify@main # it is recommended to use a specific commit hash | ||
with: | ||
github_token: ${{ secrets.PAT_FOR_LEGITIFY }} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Analyze the repo from which the action is running from. | ||
name: Legitify Analyze | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Runs "At 11:00 on every day-of-week from Monday through Friday" | ||
- cron: "0 11 * * 1-5" | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Legitify Action | ||
uses: Legit-Labs/legitify@main # it is recommended to use a specific commit hash | ||
with: | ||
github_token: ${{ secrets.PAT_FOR_LEGITIFY }} | ||
analyze_self_only: "true" |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This workflow will run legitify analyze using a specific version of legitify. | ||
# In this example, 0.1.6. For all versions, see https://github.com/Legit-Labs/legitify/releases | ||
name: Legitify Analyze | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Runs "At 11:00 on every day-of-week from Monday through Friday" | ||
- cron: "0 11 * * 1-5" | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Legitify Action | ||
uses: Legit-Labs/legitify@main # it is recommended to use a specific commit hash | ||
with: | ||
github_token: ${{ secrets.PAT_FOR_LEGITIFY }} | ||
legitify_version: "0.1.6" | ||
analyze_self_only: "true" |
Oops, something went wrong.