-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/scripts/uncover_assets_by_topic/github_action_example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Deactivate Repos by Topic | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-script: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" # Specify your Python version here | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install requests | ||
python -m pip install PyGithub | ||
python -m pip install urllib3 | ||
- name: Run Python script | ||
env: | ||
JIT_CLIENT_ID: ${{ secrets.JIT_CLIENT_ID }} | ||
JIT_SECRET: ${{ secrets.JIT_SECRET }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN provided by GitHub Actions by default | ||
GITHUB_ORGANIZATION: ${{ github.repository_owner }} | ||
TOPIC_TO_UNCOVER: <your topic name> | ||
run: python uncover_assets_by_topic.py |
3 changes: 3 additions & 0 deletions
3
src/scripts/uncover_assets_by_topic/uncover_assets_by_topic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<<<<<<< HEAD | ||
from math import log | ||
======= | ||
>>>>>>> main | ||
import os | ||
import requests | ||
import time | ||
|