mirror of
https://github.com/lmika/postlist-for-micro.blog.git
synced 2025-07-02 00:59:05 +00:00
Added step to push main to Github
This commit is contained in:
parent
d9e8c47a21
commit
0233a75bf2
|
@ -14,7 +14,7 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Push to Github
|
||||
- name: Push tag to Github
|
||||
run: |
|
||||
mkdir -p $HOME/.ssh
|
||||
echo "${{ secrets.PUBLISH_TO_GITHUB_KEY }}" > $HOME/.ssh/id_rsa
|
||||
|
@ -25,3 +25,8 @@ jobs:
|
|||
git config --global user.email 'lmika@lmika.org'
|
||||
git remote add downstream git@github.com:lmika/postlist-for-micro.blog.git
|
||||
git push downstream refs/tags/$(git name-rev --tags --name-only $(git rev-parse HEAD))
|
||||
- name: Push main to Github
|
||||
run: |
|
||||
git checkout main
|
||||
git pull origin main
|
||||
git push downstream main
|
Loading…
Reference in a new issue