Skip to content

Merge pull request #227 from quentin-laplanche-docker/sec-cli/pin-act… #56

Merge pull request #227 from quentin-laplanche-docker/sec-cli/pin-act…

Merge pull request #227 from quentin-laplanche-docker/sec-cli/pin-act… #56

Workflow file for this run

name: release
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
workflow_call:
inputs:
tag:
required: true
type: string
description: "The tag to release"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
env:
RELEASE_REF: ${{ github.event_name == 'push' && github.ref_name || inputs.tag }}
steps:
- name: Check out code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
ref: ${{ env.RELEASE_REF }}
- name: Create Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
draft: true
tag_name: ${{ env.RELEASE_REF }}
files: |
dist/docker-scout_*