Check Issues #216
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
name: Check Issues | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */5 * * *" #'*/5 * * * *' # Runs every 5 minutes | |
jobs: | |
fetch-issues: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20 | |
- name: Install Dependencies | |
run: | | |
go mod tidy # Ensures that dependencies are correctly resolved | |
- name: Run Issue Tracker | |
env: | |
REPO_OWNER: Dharma-09 # Set your target repository owner | |
REPO_NAME: CI-CD-pipelines-examples # Set your target repository name | |
LABEL: bug # Set the label to track | |
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} # GitHub Token for authentication | |
run: | | |
echo "Starting the Issue Tracker Script..." | |
go run main.go |