Add repo updater

This commit is contained in:
Nautilus 2021-03-23 11:27:41 +05:30 committed by GitHub
parent 260502514e
commit da377c3605
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

45
updater.yml Normal file
View file

@ -0,0 +1,45 @@
name: Update Fork
jobs:
update_local_fork:
name: Update Local Fork
runs-on: ubuntu-20.04
steps:
- name: Clone Fork
run: git clone git@github.com:sudo-nautilus/FFmpeg-Builds-Win32.git FFmpeg32
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Add Remote From Original Repository
run: |
cd FFmpeg32
git remote add upstream git://github.com/BtbN/FFmpeg-Builds
git fetch upstream
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Update From Original Repo
run: git pull upstream master
env:
GITHUB_TOKEN: ${{ github.token }}
remove_some_files:
name: Remove Some Files
needs: update_local_fork
runs-on: ubuntu-20.04
steps:
- name: Remove Workflow Files
run: rm -rf .github/workflows/
- name: Remove The Empty Folder
run: |
rmdir .github/workflows
rmdir .github
- name: Remove LICENSE
run: rm LICENSE
- name: Remove Readme
run: rm README.md
update_fork:
name: Update The Fork
needs: remove_some_files
runs-on: ubuntu-20.04
steps:
- name: Push Updated Repo
run: git push
env:
GITHUB_TOKEN: ${{ github.token }}