mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-06-10 10:50:49 +00:00
Create fix_readme.yml
This commit is contained in:
parent
209b980304
commit
18e34bfca7
25
.github/workflows/fix_readme.yml
vendored
Normal file
25
.github/workflows/fix_readme.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Update README
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Replace VARIABLE in README.md
|
||||
run: |
|
||||
BRANCH_NAME=${GITHUB_REF#refs/heads/}
|
||||
sed -i "s/VARIABLE/$BRANCH_NAME/g" README.md
|
||||
|
||||
- name: Commit and push if it changed
|
||||
run: |
|
||||
git diff
|
||||
git config --global user.email "actions@github.com"
|
||||
git config --global user.name "GitHub Action"
|
||||
git commit -am "Update README.md" --allow-empty
|
||||
git push
|
Loading…
Reference in New Issue
Block a user