Skip to content

Commit

Permalink
Create push-to-fork.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhyungyang authored Dec 5, 2024
1 parent 685e42f commit ea46f64
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/push-to-fork.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Push to Fork

on:
push:
branches:
- main

jobs:
push-to-fork:
if: github.repository == 'cau-se/cau-se.github.io'
runs-on: ubuntu-latest

steps:
- name: Checkout the main repository
uses: actions/checkout@v2

- name: Set up git
run: |
git config --global user.name "cau se"
git config --global user.email "[email protected]"
- name: Push to fork
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git remote add fork https://github.com/se-uni-kiel/se-uni-kiel.github.io.git
git push fork main

0 comments on commit ea46f64

Please sign in to comment.