Skip to content

stumpy-dev/automate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 

Repository files navigation

STUMPY Automation Bot

Generating a Personal Access Token (PAT)

In the upper right profile:

  1. Click on the profile picture
  2. Click on Settings (note that this is not the repository settings!)
  3. Click on < > Developer settings located at the bottom of the left hand side menu
  4. Click on Personal access tokens > Tokens (classic)
  5. Click on Generate new token > Generate new token (classic)
  6. Provide a description for the Note and check public_repo (without this checked, you will likely receive a 404 error when trying to access the Github API)
  7. Click Generate token at the bottom of the page
  8. Copy the PAT and store them in a specific environment and secret for future use

Storing and Using Secrets

In your repository of interest:

  1. Click on Settings (note that this is not the profile settings)
  2. Click on Environments on the left hand side menu
  3. Click New environment
  4. Add an appropriate environment name like API_Access
  5. Near the bottom, click Add secret
  6. Specify an environment variable name as ACCESS_TOKEN and paste your PAT from
  7. Access this environment in your workfow via environment: API_Access and reference the secret via ${{ secrets.ACCESS_TOKEN }}

Triggering the Workflow

At cron-job.org:

  1. Choose an appropirate title
  2. Set the dispatch URL (e.g., https://api.github.com/repos/stumpy-dev/automate/dispatches)
  3. Select an execution schedule
  4. Click on the "Advanced" tab
  5. Add a Accept:application/vnd.github.v3+json key-value header
  6. Add a Authorization:token <Personal_Access_Token> key-value header
  7. Change the "Request Method" to "POST"
  8. And add a {"event_type": "check_numba_python_compatibility"} Request body

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages