Close stale issues #566
This file contains hidden or 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: "Close stale issues" | |
on: | |
schedule: | |
- cron: "0 9 * * *" | |
workflow_dispatch: | |
inputs: | |
name: | |
description: "Trigger usecase" | |
default: "testing" | |
jobs: | |
stale: | |
name: scrapeArticles | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ["1.21.x"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
# You can test your matrix by printing the current Go version | |
- name: go mod tidy | |
run: go mod tidy | |
- name: go build | |
run: go build | |
- name: go run | |
run: | |
go run . | |
# get the output file from the previous step and push it to the repo | |
- name: Run the Action | |
uses: devops-infra/action-commit-push@master | |
with: | |
github_token: "${{ secrets.TOKEN }}" | |
commit_prefix: "[Auto]" | |
commit_message: "Daily article scrape" |