Releases Builder #7805
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: Releases Builder | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
contributors: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
name: Releases Builder | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.MAINTAINER_TOKEN }} | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: Install Releases Builder CLI | |
run: go install github.com/hugomods/releases-builder@latest | |
- name: Fetch and Save Releases | |
run: releases-builder | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit Changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: update releases" | |
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | |
file_pattern: 'content/releases' | |