Skip to content

Commit

Permalink
Merge branch 'main' of github.com:tkknight/iris into main
Browse files Browse the repository at this point in the history
* 'main' of github.com:tkknight/iris: (32 commits)
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  Update refresh-votable-issues.yml
  ...
  • Loading branch information
tkknight committed Mar 2, 2022
2 parents c83722b + 7b6c3fe commit 61a94aa
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/refresh-votable-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 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: tkknight/votable_issues
ref: main
path: votable_issues

# setup python
- 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
# run the python scripts passing in the github 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
# JP suggests: https://github.com/MetOffice/ssstack/blob/main/.github/workflows/publish-docs.yml

0 comments on commit 61a94aa

Please sign in to comment.