mirror of
https://github.com/Colin-XKL/Colinx-Blog.git
synced 2026-01-11 10:11:28 +08:00
add Github workflows
This commit is contained in:
6
.github/dependabot.yml
vendored
6
.github/dependabot.yml
vendored
@@ -1,12 +1,9 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
|
||||
# Maintain dependencies for GitHub Actions
|
||||
# Maintain dependencies for GitHub Actions
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
@@ -16,4 +13,3 @@ updates:
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "sunday"
|
||||
|
||||
|
||||
31
.github/workflows/CDN-URL.yaml
vendored
Normal file
31
.github/workflows/CDN-URL.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Check and correct img CDN URLs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
check-version:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Find and Replace Release
|
||||
uses: jacobtomlinson/gha-find-replace@0.1.1
|
||||
with:
|
||||
find: "blog-1301127393.cos.ap-shanghai.myqcloud.com"
|
||||
replace: "blog-1301127393.file.myqcloud.com"
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: "Change img CDN URL"
|
||||
title: "Update imgs' CDN URL"
|
||||
labels: "URL"
|
||||
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
||||
branch: "update-img-url"
|
||||
body: "Some imgs' URL need to be updated."
|
||||
22
.github/workflows/mardkwon-SEO.yaml
vendored
Normal file
22
.github/workflows/mardkwon-SEO.yaml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: SEO check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
seocheck:
|
||||
name: Markdown SEO Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Markdown SEO Check
|
||||
uses: zentered/markdown-seo-check@v1.1.0
|
||||
with:
|
||||
max_title_length: 70
|
||||
max_description_length: 150
|
||||
max_slug_length: 100
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user