Skip to content

refactor: add reusable function that runs callbacks in a transaction … #6

refactor: add reusable function that runs callbacks in a transaction …

refactor: add reusable function that runs callbacks in a transaction … #6

Workflow file for this run

# ------------------------------------------------------------------------
# SPDX-FileCopyrightText: Copyright © 2024 The Protobom Authors
# SPDX-FileType: SOURCE
# SPDX-License-Identifier: Apache-2.0
# ------------------------------------------------------------------------
---
name: Release
on:
push:
tags: v*
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # needed to write releases
steps:
- name: Set tag name
shell: bash
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Check out code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 1
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
cache: false
check-latest: true
- name: Install bom
uses: kubernetes-sigs/release-actions/setup-bom@2f8b9ec22aedc9ce15039b6c7716aa6c2907df1c # v0.2.0
- name: Generate SBOM
shell: bash
run: bom generate --format=json -o /tmp/protobom-storage-$TAG.spdx.json .
- name: Publish Release
uses: kubernetes-sigs/release-actions/publish-release@2f8b9ec22aedc9ce15039b6c7716aa6c2907df1c # v0.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
assets: /tmp/protobom-storage-$TAG.spdx.json
sbom: false