Skip to content

add a description #2709

add a description

add a description #2709

Workflow file for this run

name: Push Mirror
on: [push, delete]
jobs:
PNNL_GitLab:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: spyoungtech/mirror-action@master
with:
REMOTE: ${{ secrets.GIT_REPO_URL }}
GIT_USERNAME: ${{ secrets.GIT_USER }}
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
GIT_PUSH_ARGS: --push-option=ci.skip --tags --force --prune
- uses: nelonoel/[email protected]
- name: Trigger Pipeline
run: |
response=$(curl -X POST -F token=${{ secrets.PNNL_PIPELINE_TRIGGER_TOKEN }} -F ref=${BRANCH_NAME} https://gitlab.pnnl.gov/api/v4/projects/769/trigger/pipeline)
exit_code=$?
sudo apt install jq
pipeline_id=$(echo $response | jq '.id' | sed 's/"//g')
echo "PIPELINE_ID=${pipeline_id}" >> $GITHUB_ENV
exit $exit_code