From 836847be75a883ed49fefa31555340a2b9eda8fd Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 9 Jan 2023 08:33:29 -0700 Subject: [PATCH 1/6] get git workflow working --- .github/workflows/bumpversion.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index d7d4daa0e..f4dc9b7ca 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -7,7 +7,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Bump version and push tag id: tag_version uses: mathieudutour/github-tag-action@v5.5 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 167c756f8..43e875a9c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,5 @@ # This is a workflow to compile the cmeps source without cime -name: extbuild +name: Test Manic # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch From 5ac731b85092e7667b1e213948496ea7865a515f Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 9 Jan 2023 08:36:50 -0700 Subject: [PATCH 2/6] add tmate code --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 43e875a9c..0903de7d9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,3 +21,7 @@ jobs: make utest make stest popd + + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 From 7f9d330e16a50084bfc86036b5066b73933f6594 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 9 Jan 2023 08:43:20 -0700 Subject: [PATCH 3/6] use this to set git credentials --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0903de7d9..29b0185b5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: oleksiyrudenko/gha-git-credentials@v2-latest + with: + token: '${{ secrets.GITHUB_TOKEN }}' - name: Test Manic run: | pushd test From 1d61a6944b70a744a30e2d04b3ae55965ca0fb0b Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 9 Jan 2023 08:47:51 -0700 Subject: [PATCH 4/6] use this to set git credentials --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 29b0185b5..5bb7c45af 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,6 +17,8 @@ jobs: - uses: actions/checkout@v3 - uses: oleksiyrudenko/gha-git-credentials@v2-latest with: + name: 'Jim Edwards' + email: 'jedwards@ucar.edu' token: '${{ secrets.GITHUB_TOKEN }}' - name: Test Manic run: | From f4d6aa9332e54f3df6dc83623f407b157c616e9b Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 9 Jan 2023 08:50:40 -0700 Subject: [PATCH 5/6] try setting credentials this way --- .github/workflows/tests.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5bb7c45af..90ae65a43 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,14 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: oleksiyrudenko/gha-git-credentials@v2-latest - with: - name: 'Jim Edwards' - email: 'jedwards@ucar.edu' - token: '${{ secrets.GITHUB_TOKEN }}' - name: Test Manic run: | pushd test + git config --global user.email "devnull@example.com" + git config --global user.name "GITHUB tester" make utest make stest popd From ace90b2c2ba91472df3ba8d5e667ba216eaba0ee Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Mon, 9 Jan 2023 08:54:30 -0700 Subject: [PATCH 6/6] try setting credentials this way --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 90ae65a43..dd75b91b4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,6 +20,7 @@ jobs: pushd test git config --global user.email "devnull@example.com" git config --global user.name "GITHUB tester" + git config --global protocol.file.allow always make utest make stest popd