From 837eb72264a03985fed9b9f51dd5c229c6a8a114 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 11:42:07 +0000 Subject: [PATCH 01/32] Create test2.yml --- .github/workflows/test2.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test2.yml diff --git a/.github/workflows/test2.yml b/.github/workflows/test2.yml new file mode 100644 index 0000000000..5df8a23da8 --- /dev/null +++ b/.github/workflows/test2.yml @@ -0,0 +1,23 @@ +name: hello world2 +on: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '43 * * * *' + workflow_dispatch: + inputs: + name: + description: 'Person to greet' + required: true + default: 'Mona the Octocat' + home: + description: 'location' + required: false + default: 'The Octoverse' + +jobs: + say_hello: + runs-on: ubuntu-latest + steps: + - run: | + echo "Hello ${{ github.event.inputs.name }}!" + echo "- in ${{ github.event.inputs.home }}!" From 04e26cad5acce0403df525309483b89395c586e0 Mon Sep 17 00:00:00 2001 From: Tremain Knight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 12:03:52 +0000 Subject: [PATCH 02/32] gha test --- .github/workflows/refresh-votable-issues.yml | 26 ++++++++++++++++++++ .github/workflows/test2.yml | 23 ----------------- 2 files changed, 26 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/refresh-votable-issues.yml delete mode 100644 .github/workflows/test2.yml diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml new file mode 100644 index 0000000000..6e27d3f0aa --- /dev/null +++ b/.github/workflows/refresh-votable-issues.yml @@ -0,0 +1,26 @@ +# Uses Github API to get a list of issues that have votes on and then +# update a gist with the results in json + +name: Refresh Votable Issues +on: + workflow_dispatch: + branches: [ votable_issues ] +jobs: + votable_main: + runs-on: ubuntu-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout + run: echo "Hello World!" + +# uses: actions/checkout@v2 +# with: +# path: main + +# - uses: actions/script@v4 +# with: +# github-token: ${{ secrets.GITHUB_TOKEN }} +# script: | +# echo "hello world" +# docs/src/query_gh_votable_issues.py ${{ secrets.GITHUB_TOKEN }} +# cat votable-issues.json diff --git a/.github/workflows/test2.yml b/.github/workflows/test2.yml deleted file mode 100644 index 5df8a23da8..0000000000 --- a/.github/workflows/test2.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: hello world2 -on: - schedule: - # * is a special character in YAML so you have to quote this string - - cron: '43 * * * *' - workflow_dispatch: - inputs: - name: - description: 'Person to greet' - required: true - default: 'Mona the Octocat' - home: - description: 'location' - required: false - default: 'The Octoverse' - -jobs: - say_hello: - runs-on: ubuntu-latest - steps: - - run: | - echo "Hello ${{ github.event.inputs.name }}!" - echo "- in ${{ github.event.inputs.home }}!" From 6becc0aec692ac00078dcbd1bdcc3d5176101c01 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 14:55:35 +0000 Subject: [PATCH 03/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 6e27d3f0aa..ff20c181fe 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -13,9 +13,15 @@ jobs: - name: Checkout run: echo "Hello World!" -# uses: actions/checkout@v2 -# with: -# path: main + uses: actions/checkout@v2 + with: + repository: tkknight/iris + path: iris + + uses: actions/checkout@v2 + with: + repository: SciTools-incubator/scitools-cla-checker + path: scitools-cla-checker # - uses: actions/script@v4 # with: From 2476aa81fdc9bc93f023512abd61c95d16ccf4dc Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 15:02:16 +0000 Subject: [PATCH 04/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index ff20c181fe..d7746722b3 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -10,14 +10,16 @@ jobs: runs-on: ubuntu-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: Checkout + - name: echo test run: echo "Hello World!" + - name: chekcout iris uses: actions/checkout@v2 with: repository: tkknight/iris path: iris - + + - name: chekcout the file to update uses: actions/checkout@v2 with: repository: SciTools-incubator/scitools-cla-checker From 4cd47bdff568c441e50184334a77acf1fd416b08 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 15:11:25 +0000 Subject: [PATCH 05/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index d7746722b3..0a4d6a4d6b 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -13,18 +13,12 @@ jobs: - name: echo test run: echo "Hello World!" - - name: chekcout iris + - name: checkout iris uses: actions/checkout@v2 with: repository: tkknight/iris path: iris - - name: chekcout the file to update - uses: actions/checkout@v2 - with: - repository: SciTools-incubator/scitools-cla-checker - path: scitools-cla-checker - # - uses: actions/script@v4 # with: # github-token: ${{ secrets.GITHUB_TOKEN }} From c58834b383b7bc77afd6e75417f72144ee1c6ca5 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 15:16:19 +0000 Subject: [PATCH 06/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 0a4d6a4d6b..ddaa8f6f5d 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -11,13 +11,13 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: echo test - run: echo "Hello World!" + run: echo "Hello World!";ls -al - - name: checkout iris - uses: actions/checkout@v2 - with: - repository: tkknight/iris - path: iris +# - name: checkout iris +# uses: actions/checkout@v2 +# with: +# repository: tkknight/iris +# path: iris # - uses: actions/script@v4 # with: From 08094be1bb7a0bb9eb18702888a1a726a0d54b95 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 15:17:59 +0000 Subject: [PATCH 07/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index ddaa8f6f5d..55e4409e4f 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -9,15 +9,15 @@ jobs: votable_main: runs-on: ubuntu-latest steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: echo test - run: echo "Hello World!";ls -al - -# - name: checkout iris -# uses: actions/checkout@v2 -# with: -# repository: tkknight/iris -# path: iris + run: echo "ls command";ls -al + + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: checkout iris + uses: actions/checkout@v2 + with: + repository: tkknight/iris + path: iris # - uses: actions/script@v4 # with: @@ -26,3 +26,6 @@ jobs: # echo "hello world" # docs/src/query_gh_votable_issues.py ${{ secrets.GITHUB_TOKEN }} # cat votable-issues.json + + - name: echo test + run: echo "Hello World!" From 5e22ee3fadf7f775960066a1f83d8d2e97ced5b5 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 15:20:35 +0000 Subject: [PATCH 08/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 55e4409e4f..73e13f1897 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -19,13 +19,13 @@ jobs: repository: tkknight/iris path: iris -# - uses: actions/script@v4 -# with: + - uses: actions/script@v4 + with: # github-token: ${{ secrets.GITHUB_TOKEN }} -# script: | -# echo "hello world" -# docs/src/query_gh_votable_issues.py ${{ secrets.GITHUB_TOKEN }} -# cat votable-issues.json + script: | + echo "hello world" + python iris/docs/src/query_gh_votable_issues.py ${{ secrets.GITHUB_TOKEN }} + cat votable-issues.json - name: echo test run: echo "Hello World!" From d8ae094f7bd0311cc84ae1230b718654d087d4b0 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:20:12 +0000 Subject: [PATCH 09/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 31 +++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 73e13f1897..541d4fe2e2 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -19,13 +19,30 @@ jobs: repository: tkknight/iris path: iris - - uses: actions/script@v4 - with: -# github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - echo "hello world" - python iris/docs/src/query_gh_votable_issues.py ${{ secrets.GITHUB_TOKEN }} - cat votable-issues.json + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install PyGithub + - name: Run the python + run: | + python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} + +# - uses: actions/script@v4 +# with: +# github-token: ${{ secrets.GITHUB_TOKEN }} +# script: | +# echo "hello world" +# python iris/docs/src/query_gh_votable_issues.py ${{ secrets.GITHUB_TOKEN }} +# cat votable-issues.json +# - name: echo test run: echo "Hello World!" From 7d7ede4c3d42a743638fbad99afed4400fd505cf Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:22:52 +0000 Subject: [PATCH 10/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 541d4fe2e2..4b3ac70dc0 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -31,7 +31,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install PyGithub + pip install PyGithub - name: Run the python run: | python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} From 23d5afd8286b83ee0650ddaeba23ae24300d7706 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:23:49 +0000 Subject: [PATCH 11/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 4b3ac70dc0..2912ed5bf8 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -31,7 +31,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install PyGithub +# pip install PyGithub - name: Run the python run: | python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} @@ -45,4 +45,4 @@ jobs: # cat votable-issues.json # - name: echo test - run: echo "Hello World!" + run: echo "Hello World!";ls -al $GITHUB_WORKSPACE From bc1c3a2a1497b9a31a0d1c005fc54ffb5b078436 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:25:38 +0000 Subject: [PATCH 12/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 2912ed5bf8..ceea43c3c0 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -23,7 +23,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - name: Set up Python 3.9 uses: actions/setup-python@v2 with: From 7082c1219c827c37fcdba2e1e1e6c0009b557fd5 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:26:19 +0000 Subject: [PATCH 13/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index ceea43c3c0..6ed679f078 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -27,9 +27,9 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip +# - name: Install dependencies +# run: | +# python -m pip install --upgrade pip # pip install PyGithub - name: Run the python run: | From 1337a9123179744f45125e51271555d518379673 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:26:44 +0000 Subject: [PATCH 14/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 6ed679f078..3e275ae540 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -31,9 +31,11 @@ jobs: # run: | # python -m pip install --upgrade pip # pip install PyGithub - - name: Run the python - run: | - python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} +# - name: Run the python +# run: | +# python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} + + # - uses: actions/script@v4 # with: From 73f8de74687ab363dbdff5e7feb1939df6999eb0 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:27:27 +0000 Subject: [PATCH 15/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 3e275ae540..8490fe37e7 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -20,13 +20,13 @@ jobs: path: iris - build: - runs-on: ubuntu-latest - steps: - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Set up Python 3.9 +# uses: actions/setup-python@v2 +# with: +# python-version: 3.9 # - name: Install dependencies # run: | # python -m pip install --upgrade pip From bc016bd6d82c1c1d264119ef62831935bb8e556e Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:28:54 +0000 Subject: [PATCH 16/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 8490fe37e7..6613d2187d 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -9,9 +9,7 @@ jobs: votable_main: runs-on: ubuntu-latest steps: - - name: echo test - run: echo "ls command";ls -al - + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: checkout iris uses: actions/checkout@v2 @@ -46,4 +44,4 @@ jobs: # cat votable-issues.json # - name: echo test - run: echo "Hello World!";ls -al $GITHUB_WORKSPACE + run: echo "Hello World!";ls -al $GITHUB_WORKSPACE/iris From 15a05a95a002c1b02262535aceb2306e2d758aff Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:30:01 +0000 Subject: [PATCH 17/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 6613d2187d..e4049ba0f1 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -44,4 +44,4 @@ jobs: # cat votable-issues.json # - name: echo test - run: echo "Hello World!";ls -al $GITHUB_WORKSPACE/iris + run: echo "Hello World!";ls -al $GITHUB_WORKSPACE/iris/docs/src From 08c2fb31bc1a76096c3285a76757b5fbf146c8e5 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:32:45 +0000 Subject: [PATCH 18/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index e4049ba0f1..069b34867a 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -15,6 +15,7 @@ jobs: uses: actions/checkout@v2 with: repository: tkknight/iris + ref: votable_issues path: iris From c58d6ad79d75003bd47e83e4c0b6a02a0e0796b9 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:35:32 +0000 Subject: [PATCH 19/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 069b34867a..b3494945ed 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -18,6 +18,17 @@ jobs: ref: votable_issues path: iris + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 +# - name: Install dependencies +# run: | +# python -m pip install --upgrade pip +# pip install PyGithub +# - name: Run the python +# run: | +# python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} # build: # runs-on: ubuntu-latest From 737ea8ae57fb6de828862bb681f7a15c0164a937 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:37:22 +0000 Subject: [PATCH 20/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index b3494945ed..a5176af588 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -22,10 +22,11 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.9 -# - name: Install dependencies -# run: | -# python -m pip install --upgrade pip -# pip install PyGithub + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install PyGithub + # - name: Run the python # run: | # python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} From 192b52089762b618ee808dac1809c700c7de1b24 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:38:43 +0000 Subject: [PATCH 21/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index a5176af588..0ea171b745 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -8,8 +8,7 @@ on: jobs: votable_main: runs-on: ubuntu-latest - steps: - + steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: checkout iris uses: actions/checkout@v2 @@ -17,7 +16,8 @@ jobs: repository: tkknight/iris ref: votable_issues path: iris - + + # setup python - name: Set up Python 3.9 uses: actions/setup-python@v2 with: @@ -27,9 +27,9 @@ jobs: python -m pip install --upgrade pip pip install PyGithub -# - name: Run the python -# run: | -# python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} + - name: Run the python + run: | + python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} # build: # runs-on: ubuntu-latest From f4af40290ea2706a645a419820338992ede79cf7 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:40:36 +0000 Subject: [PATCH 22/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 0ea171b745..1c0824e310 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -29,7 +29,7 @@ jobs: - name: Run the python run: | - python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} + python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} # build: # runs-on: ubuntu-latest From 586ca36b4d11f301f7624f78657a1f990973d50b Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:44:40 +0000 Subject: [PATCH 23/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 34 +++----------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 1c0824e310..0267e1aa21 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -26,35 +26,11 @@ jobs: run: | python -m pip install --upgrade pip pip install PyGithub - + # run the python scripts passing in the github token + # TODO: this seems to run ok without any API token? - name: Run the python run: | + ls -al ls -al $GITHUB_WORKSPACE/iris/docs/src python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} - -# build: -# runs-on: ubuntu-latest -# steps: -# - name: Set up Python 3.9 -# uses: actions/setup-python@v2 -# with: -# python-version: 3.9 -# - name: Install dependencies -# run: | -# python -m pip install --upgrade pip -# pip install PyGithub -# - name: Run the python -# run: | -# python ${{ github.action_path }}/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} - - - -# - uses: actions/script@v4 -# with: -# github-token: ${{ secrets.GITHUB_TOKEN }} -# script: | -# echo "hello world" -# python iris/docs/src/query_gh_votable_issues.py ${{ secrets.GITHUB_TOKEN }} -# cat votable-issues.json -# - - name: echo test - run: echo "Hello World!";ls -al $GITHUB_WORKSPACE/iris/docs/src + ls -al ls -al $GITHUB_WORKSPACE/iris/docs/src + From 5a2c6f825599ca70a4586345f4caa9fb1f3aa66a Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:45:49 +0000 Subject: [PATCH 24/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 0267e1aa21..a9e3eeb210 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -30,7 +30,7 @@ jobs: # TODO: this seems to run ok without any API token? - name: Run the python run: | - ls -al ls -al $GITHUB_WORKSPACE/iris/docs/src + ls -al $GITHUB_WORKSPACE/iris/docs/src python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} - ls -al ls -al $GITHUB_WORKSPACE/iris/docs/src + ls -al $GITHUB_WORKSPACE/iris/docs/src From 8ddc02e9e0d47f74dbefffe4f21dc2dd74757f88 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:51:26 +0000 Subject: [PATCH 25/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index a9e3eeb210..eea41e7d86 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -33,4 +33,5 @@ jobs: ls -al $GITHUB_WORKSPACE/iris/docs/src python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} ls -al $GITHUB_WORKSPACE/iris/docs/src + ls -al $GITHUB_WORKSPACE From 46f574e56133dd7e1d4afec2bee7c07bbcc0bea5 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:54:45 +0000 Subject: [PATCH 26/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index eea41e7d86..00b14d3822 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -30,8 +30,6 @@ jobs: # TODO: this seems to run ok without any API token? - name: Run the python run: | - ls -al $GITHUB_WORKSPACE/iris/docs/src python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} - ls -al $GITHUB_WORKSPACE/iris/docs/src ls -al $GITHUB_WORKSPACE From 954d5d71bf9a86db4129b68d47a547d368a449ce Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:01:49 +0000 Subject: [PATCH 27/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 00b14d3822..b054f7fb88 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -30,6 +30,7 @@ jobs: # TODO: this seems to run ok without any API token? - name: Run the python run: | - python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ${{ secrets.gh_token }} + export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} + python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ls -al $GITHUB_WORKSPACE From ac506f2b74c82c426f21cdeb7af8d102efffb354 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:13:18 +0000 Subject: [PATCH 28/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index b054f7fb88..28a8d2e540 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -9,14 +9,22 @@ jobs: votable_main: runs-on: ubuntu-latest steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + # Checks-out your repositories under $GITHUB_WORKSPACE, so your job can access it - name: checkout iris uses: actions/checkout@v2 with: repository: tkknight/iris ref: votable_issues path: iris - + + - name: checkout the repo with the json to update + uses: actions/checkout@v2 + with: + # TODO: use the proper repo! + repository: SciTools-incubator/scitools-cla-checker + ref: main + path: scitools-cla-checker + # setup python - name: Set up Python 3.9 uses: actions/setup-python@v2 From 492e00ca8fa7d6817d21ac0a3af073e6ea13672d Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:14:50 +0000 Subject: [PATCH 29/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 28a8d2e540..cd0a5134b9 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -22,7 +22,7 @@ jobs: with: # TODO: use the proper repo! repository: SciTools-incubator/scitools-cla-checker - ref: main + ref: master path: scitools-cla-checker # setup python From 1b6ff8f7f7075e95e74c6c902cf0a83b729dde1c Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:23:40 +0000 Subject: [PATCH 30/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index cd0a5134b9..69135c4d4d 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -21,9 +21,9 @@ jobs: uses: actions/checkout@v2 with: # TODO: use the proper repo! - repository: SciTools-incubator/scitools-cla-checker - ref: master - path: scitools-cla-checker + repository: tkknight/votable_issues + ref: main + path: votable_issues # setup python - name: Set up Python 3.9 From 3a9e1ed859fea31c0b65654d0d81d0a7c29729b3 Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:27:11 +0000 Subject: [PATCH 31/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 69135c4d4d..731a1e0fc7 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -35,10 +35,9 @@ jobs: python -m pip install --upgrade pip pip install PyGithub # run the python scripts passing in the github token - # TODO: this seems to run ok without any API token? - name: Run the python run: | export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ls -al $GITHUB_WORKSPACE - + # update the reop with the new file, try https://github.com/marketplace/actions/update-files-on-github From 7b6c3fedb10283aeee9e12d8c75d00271ac1c9bf Mon Sep 17 00:00:00 2001 From: tkknight <2108488+tkknight@users.noreply.github.com> Date: Mon, 10 Jan 2022 18:51:23 +0000 Subject: [PATCH 32/32] Update refresh-votable-issues.yml --- .github/workflows/refresh-votable-issues.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/refresh-votable-issues.yml b/.github/workflows/refresh-votable-issues.yml index 731a1e0fc7..1c08bd4a2d 100644 --- a/.github/workflows/refresh-votable-issues.yml +++ b/.github/workflows/refresh-votable-issues.yml @@ -41,3 +41,4 @@ jobs: python $GITHUB_WORKSPACE/iris/docs/src/query_gh_votable_issues.py ls -al $GITHUB_WORKSPACE # update the reop with the new file, try https://github.com/marketplace/actions/update-files-on-github + # JP suggests: https://github.com/MetOffice/ssstack/blob/main/.github/workflows/publish-docs.yml