Skip to content

Commit

Permalink
Updat CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Apr 1, 2024
1 parent 93a0120 commit 7b62c0d
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/run_ccpp_scm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Store remote-URL for current ccpp-framework code
run: echo "GIT_REMOTE_URL=`git remote get-url origin`" >> $GITHUB_ENV

- name: Store branch name for current ccpp-framework code
run: echo "GIT_REMOTE_BRANCH=`git rev-parse --abbrev-ref HEAD`" >> $GITHUB_ENV

- name: Store hash for HEAD of current ccpp-framework code
run: echo "GIT_REMOTE_HASH=`git rev-parse HEAD`" >> $GITHUB_ENV

- name: Checkout latest CCPP SCM code.
run: |
git clone https://github.com/NCAR/ccpp-scm.git
Expand All @@ -55,18 +46,9 @@ jobs:
cd ${SCM_ROOT}
git submodule update --init --recursive
- name: Update ccpp-framework hash in ccpp-scm
- name: Update ccpp-framework hash in ccpp-scm.
run: |
cd ${SCM_ROOT}/ccpp/framework
echo ${{ github.repository }}
echo ${{ github.head_ref }}
echo ${{ github.event.pull_request.head.repo.name }}
echo ${{ github.event.pull_request.head.repo.clone_url }}
echo $GIT_REMOTE_URL
echo $GIT_REMOTE_BRANCH
echo ${{github.repository}}
echo ${{ github.event.pull_request.head.sha }}
echo $GITHUB_SHA
git remote add remote_local ${{ github.event.pull_request.head.repo.clone_url }}
git fetch remote_local ${{ github.head_ref }}
git checkout remote_local/${{ github.head_ref }}
Expand Down

0 comments on commit 7b62c0d

Please sign in to comment.