Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
nomad-FAIR
Commits
9cbc1fe9
Commit
9cbc1fe9
authored
2 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Changed github push PR action.
parent
bfb3e392
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1180
Changed github push PR action.
Pipeline
#160748
passed
2 years ago
Stage: build
Stage: test
Stage: deploy
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/push-pr-to-gitlab.yaml
+8
-7
8 additions, 7 deletions
.github/workflows/push-pr-to-gitlab.yaml
with
8 additions
and
7 deletions
.github/workflows/push-
branch
-to-gitlab.yaml
→
.github/workflows/push-
pr
-to-gitlab.yaml
+
8
−
7
View file @
9cbc1fe9
name
:
Push the
branch
to the home Project at MPCDF's gitlab
name
:
Push the
PR
to the home Project at MPCDF's gitlab
on
:
pull_request_review
:
types
:
[
submitted
]
pull_request_target
:
paths-ignore
:
-
'
.gitlab-ci.*'
-
'
.github/**'
jobs
:
push-to-gitlab
:
if
:
github.event.review.state == 'approved'
runs-on
:
ubuntu-latest
env
:
gitlab_ref
:
"
github-${{
github.event.pull_request.number
}}-${{
github.event.pull_request.user.login
}}-${{
github.event.pull_request.head.ref
}}"
steps
:
-
name
:
Git checkout
uses
:
actions/checkout@v
2
uses
:
actions/checkout@v
3
with
:
fetch-depth
:
'
0'
ref
:
${{ github.event.pull_request.head.
ref
}}
ref
:
${{ github.event.pull_request.head.
sha
}}
-
name
:
Git push
run
:
|
git push "https://username:${{ secrets.GITLAB_ACCESS_TOKEN }}@gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git"
${{ github.event.pull_request.head.ref }}:
$gitlab_ref -f
git push "https://username:${{ secrets.GITLAB_ACCESS_TOKEN }}@gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git"
HEAD:refs/heads/
$gitlab_ref -f
-
name
:
Create MR
run
:
|
curl -X POST -L -G \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment