Skip to content

ref: code formating #45

ref: code formating

ref: code formating #45

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
tests:
uses: coolapso/prometheus-twitch-exporter/.github/workflows/test.yaml@main
release:
needs: tests
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: ${{ steps.semrel.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.23'
- uses: go-semantic-release/action@v1
id: semrel
with:
custom-arguments: '--commit-analyzer-opt patch_release_rules=fix,ref,build'
hooks: goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: coolapso/twitch-exporter
docker:
needs: release
uses: coolapso/prometheus-twitch-exporter/.github/workflows/docker.yaml@main
if: ${{ needs.release.outputs.version != '' }}
secrets: inherit
with:
release_tag: ${{ needs.release.outputs.version }}