Skip to content

Update .goreleaser.yml #6

Update .goreleaser.yml

Update .goreleaser.yml #6

Workflow file for this run

name: 'ci'
on:
pull_request:
branches:
- main
types: [opened, synchronize, closed]
permissions:
id-token: write
packages: write
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: validate
run: |
.github/scripts/validate.sh
- name: Install Syft
uses: anchore/sbom-action/download-syft@fc46e51fd3cb168ffb36c6d1915723c47db58abb # v0.17.7
- name: release
run: |
set -e; awk 'NR==2 {print RT,$0}' RS="## [v|0-9]" OFS="" CHANGELOG.md > release_description.md
cat release_description.md
echo $IMAGEVERSION
git config --global user.email "autobump@gha.com"
git config --global user.name "autobump"
git tag $IMAGEVERSION
- uses: goreleaser/goreleaser-action@v6 # run goreleaser
with:
version: '~> v2'
args: release --clean --release-notes release_description.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}