Skip to content

Draft: Documentation rework #573

Draft: Documentation rework

Draft: Documentation rework #573

Workflow file for this run

name: NERSC
on:
pull_request
env:
PR_NUMBER: ${{ github.event.number }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
authorize:
runs-on: ubuntu-latest
steps:
- run: true
sync-with-nersc:
needs: authorize
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup git
run: |
git config --global user.name "PDC BOT"
git config --global user.email "pdc@example.com"
- name: Create PR branch
run: |
PR_SHA=$(git rev-parse --short "$GITHUB_SHA")
git fetch origin pull/${PR_NUMBER}/head:PR-${PR_SHA}
git remote add gitlab https://${{ secrets.GITLAB_TOKEN_NAME }}:${{ secrets.GITLAB_TOKEN }}@${{ secrets.GITLAB_URL }}
git checkout PR-${PR_SHA}
git push -f gitlab -u PR-${PR_SHA}