Use the redux store to read and write the settings and other fixes #16
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: GitLab | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
jobs: | |
Sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sync to GitLab | |
env: | |
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }} | |
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} | |
GITLAB_REPO: ${{ secrets.GITLAB_REPO }} | |
GITLAB_EMAIL: ${{ secrets.GITLAB_EMAIL }} | |
GITLAB_NAME: ${{ secrets.GITLAB_NAME }} | |
run: | | |
git config user.name "$GITLAB_NAME" | |
git config user.email "$GITLAB_EMAIL" | |
git remote add gitlab https://$GITLAB_USERNAME:$GITLAB_TOKEN@$GITLAB_REPO | |
git checkout master | |
git fetch -q gitlab master 2>&1 | sed "s|https://$GITLAB_REPO|https://***|g" | |
git rebase gitlab/master | |
git push gitlab master --tags 2>&1 | sed "s|https://$GITLAB_REPO|https://***|g" |