mirror of
https://github.com/LamGC/quickly-conf-sshd.git
synced 2025-04-29 14:17:32 +00:00
有一说一, 这个用编辑器替换不好嘛hhhhhh Co-authored-by: NANSIYV <39900381+nsv2051@users.noreply.github.com>
28 lines
712 B
YAML
28 lines
712 B
YAML
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 |