forked from cosmos/chain-registry
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
82 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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
name: Check Broken Links | ||
|
||
on: | ||
schedule: | ||
- cron: '0 10 1,15 * *' # Run on 1st and 15th days of every month at 10:00 UTC | ||
workflow_dispatch: # Allow manual triggering of the workflow | ||
|
||
jobs: | ||
check_links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Link Checker | ||
id: lychee | ||
uses: lycheeverse/[email protected] | ||
with: | ||
args: --accept 501 --exclude-loopback --verbose --no-progress --exclude '^.*(%7D)$' './**/*.json' './**/*.md' | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Create Issue From File | ||
if: env.lychee_exit_code != 0 | ||
uses: peter-evans/create-issue-from-file@v4 | ||
with: | ||
title: Link Checker Report | ||
content-filepath: ./lychee/out.md | ||
labels: report, automated issue | ||
#name: Check Broken Links | ||
# | ||
#on: | ||
# schedule: | ||
# - cron: '0 10 1,15 * *' # Run on 1st and 15th days of every month at 10:00 UTC | ||
# workflow_dispatch: # Allow manual triggering of the workflow | ||
# | ||
#jobs: | ||
# check_links: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# | ||
# - name: Link Checker | ||
# id: lychee | ||
# uses: lycheeverse/[email protected] | ||
# with: | ||
# args: --accept 501 --exclude-loopback --verbose --no-progress --exclude '^.*(%7D)$' './**/*.json' './**/*.md' | ||
# env: | ||
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
# | ||
# - name: Create Issue From File | ||
# if: env.lychee_exit_code != 0 | ||
# uses: peter-evans/create-issue-from-file@v4 | ||
# with: | ||
# title: Link Checker Report | ||
# content-filepath: ./lychee/out.md | ||
# labels: report, automated issue |
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 |
---|---|---|
@@ -1,54 +1,54 @@ | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
name: Update chain.json | ||
jobs: | ||
update_chainjson: | ||
name: Update chains' chain.json | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout registry | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
cd .github/workflows/utility | ||
python -m pip install requests | ||
- name: Check chain JSON Update | ||
shell: python | ||
run: | | ||
import sys | ||
sys.path.insert(1, '.github/workflows/utility') | ||
import update_chaindata | ||
update_chaindata.checkUpdate() | ||
- name: Add Commit Push | ||
uses: devops-infra/action-commit-push@master | ||
with: | ||
github_token: "${{ secrets.GITHUB_TOKEN }}" | ||
add_timestamp: false | ||
commit_prefix: "[AUTO]" | ||
commit_message: "Chain.json automatic update" | ||
force: false | ||
target_branch: update/chainjsonv2 | ||
- name: Create A PR | ||
uses: devops-infra/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_branch: update/chainjsonv2 | ||
target_branch: master | ||
title: Chain.json automatic update | ||
body: "**Automated pull request**" | ||
old_string: "**THIS IS AN AUTOMATED UPDATE OF CHAIN.JSON**" | ||
new_string: "** Automatic pull request**" | ||
get_diff: true | ||
ignore_users: "dependabot" | ||
#on: | ||
# workflow_dispatch: | ||
# schedule: | ||
# - cron: "0 0 * * *" | ||
#name: Update chain.json | ||
#jobs: | ||
# update_chainjson: | ||
# name: Update chains' chain.json | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: checkout registry | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v3 | ||
# with: | ||
# python-version: 3.9 | ||
# | ||
# - name: Install Python dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# cd .github/workflows/utility | ||
# python -m pip install requests | ||
# | ||
# - name: Check chain JSON Update | ||
# shell: python | ||
# run: | | ||
# import sys | ||
# sys.path.insert(1, '.github/workflows/utility') | ||
# import update_chaindata | ||
# update_chaindata.checkUpdate() | ||
# | ||
# - name: Add Commit Push | ||
# uses: devops-infra/action-commit-push@master | ||
# with: | ||
# github_token: "${{ secrets.GITHUB_TOKEN }}" | ||
# add_timestamp: false | ||
# commit_prefix: "[AUTO]" | ||
# commit_message: "Chain.json automatic update" | ||
# force: false | ||
# target_branch: update/chainjsonv2 | ||
# | ||
# - name: Create A PR | ||
# uses: devops-infra/[email protected] | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# source_branch: update/chainjsonv2 | ||
# target_branch: master | ||
# title: Chain.json automatic update | ||
# body: "**Automated pull request**" | ||
# old_string: "**THIS IS AN AUTOMATED UPDATE OF CHAIN.JSON**" | ||
# new_string: "** Automatic pull request**" | ||
# get_diff: true | ||
# ignore_users: "dependabot" |