mirror of
https://github.com/LamGC/quickly-conf-sshd.git
synced 2025-04-29 14:17:32 +00:00
feat: 添加用来快速更新 Readme.md 的 Github Action.
有一说一, 这个用编辑器替换不好嘛hhhhhh Co-authored-by: NANSIYV <39900381+nsv2051@users.noreply.github.com>
This commit is contained in:
parent
44a6cbbdbe
commit
a72e60d80a
28
.github/workflows/update-access-url.yml
vendored
Normal file
28
.github/workflows/update-access-url.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Update access url
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
update-url:
|
||||
timeout-minutes: 5
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Update access url
|
||||
run: |
|
||||
sed -i "s/ssh.lamgc.me/$REPLACEMENT_VALUE/g" README.md
|
||||
env:
|
||||
# 要替换的个人访问地址,例如:ssh.lamgc.me
|
||||
REPLACEMENT_VALUE: ${{ secrets.ACCESS_URL }}
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Update access url to ${{ secrets.ACCESS_URL }}
|
||||
commit_options: '--no-verify'
|
||||
file_pattern: README.md
|
Loading…
Reference in New Issue
Block a user