Merge tag 'v1.3.1' into staging #14
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: Mirror staging to GitLab | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- staging | |
jobs: | |
mirror: | |
if: github.repository == 'accessibility-exchange/platform' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Git | |
run: | | |
git config --global user.name "${{ vars.GIT_USER }}" | |
git config --global user.email "${{ vars.GIT_EMAIL }}" | |
git remote add gitlab ${{ vars.GITLAB_URL }} | |
- name: Setup SSH | |
uses: webfactory/ssh-agent@v0.8.0 | |
with: | |
ssh-private-key: ${{ secrets.GITLAB_SSH_KEY }} | |
- name: Push to GitLab | |
run: | | |
ssh-keyscan git.kube.v1.colab.coop >> ~/.ssh/known_hosts | |
git pull gitlab staging | |
git push gitlab staging:staging |