-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3672542
commit 0559969
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: PNNL Mirror | ||
|
||
# triggers a github action everytime there is a push or mr | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
# To test on HPC resources we must first mirror the repo and then trigger a pipeline | ||
push: | ||
# Latest Ubuntu as of Feb 2023 is 20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
# Action checks-out your repository under $GITHUB_WORKSPACE, so your workflow can access it. | ||
- uses: actions/checkout@v1 | ||
|
||
# Necessary to get branch name independent of PR/push | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
# Action for mirroring your commits to a different remote repository | ||
- uses: yesolutions/mirror-action@master | ||
# Give actions access to some secrets | ||
with: | ||
GIT_PUSH_ARGS: '--tags --force --push-option=ci.skip' | ||
REMOTE: 'https://gitlab.pnnl.gov/exasgd/frameworks/exago-github-mirror' | ||
GIT_USERNAME: ${{ secrets.GIT_USER }} | ||
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: ORNL Ascent Mirror | ||
|
||
# triggers a github action everytime there is a push or mr | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
- ci | ||
- main | ||
|
||
jobs: | ||
# To test on HPC resources we must first mirror the repo and then trigger a pipeline | ||
push: | ||
# Latest Ubuntu as of Feb 2023 is 20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
# Action checks-out your repository under $GITHUB_WORKSPACE, so your workflow can access it. | ||
- uses: actions/checkout@v1 | ||
|
||
# Necessary to get branch name independent of PR/push | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
# Action for mirroring your commits to a different remote repository | ||
- uses: yesolutions/mirror-action@master | ||
# Give actions access to some secrets | ||
with: | ||
GIT_REF: 'refs/heads/ci' | ||
GIT_PUSH_ARGS: '--tags --force --push-option=ci.skip' | ||
REMOTE: 'https://code.ornl.gov/ecpcitest/exasgd/resolve' | ||
GIT_USERNAME: ${{ secrets.GIT_USER }} | ||
GIT_PASSWORD: ${{ secrets.ORNL_ASCENT_GIT_PASSWORD }} | ||
|
||
# Trigger CI pipeline since it was skipped in the above push | ||
- name: Trigger Pipeline | ||
run: curl -X POST -F token=${{ secrets.ORNL_ASCENT_PIPELINE_TRIGGER }} -F ref=${{ steps.extract_branch.outputs.branch }} https://code.ornl.gov/api/v4/projects/13292/trigger/pipeline |