This repository has been archived by the owner on Apr 14, 2024. It is now read-only.
Merge branch 'oscam-svn' #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: create patch | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '.github/**' | |
workflow_dispatch: | |
jobs: | |
create-patch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout oscam-patched | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: checkout oscam-emu | |
uses: actions/checkout@v4 | |
with: | |
repository: oscam-emu/oscam-emu | |
token: ${{ secrets.ACTIONS_TOKEN }} | |
path: emu | |
- name: create patch | |
run: | | |
git checkout oscam-svn | |
git checkout master | |
./git-svn-diff.sh > oscam-emu.patch | |
sudo mv oscam-emu.patch emu | |
- name: commit changes | |
run: | | |
cd emu | |
git config --global user.name "oscam-emu" | |
git config --global user.email "[email protected]" | |
if ! git diff --quiet HEAD; then | |
git commit -am "Update patch" | |
git push | |
fi |