opentofu/.github/workflows/update-top-issues-ranking.yml
Alejandro Lazaro 4726d106c8
Do not run top issues workflow on forks ()
Signed-off-by: Alejandro Lazaro <alazaro@werpo.com.ar>
2024-05-06 12:26:23 +02:00

29 lines
632 B
YAML

name: update-top-issues-ranking
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *'
jobs:
update:
runs-on: ubuntu-latest
if: github.repository_owner == 'opentofu'
permissions:
contents: read
issues: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Update top issues ranking
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd .github/scripts/update_top_issues_ranking
go mod download
go run main.go opentofu opentofu 1496