Skip to content

Commit

Permalink
Chore: Update to new GitHub release action (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Dec 30, 2024
1 parent 227dded commit 8079c2d
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,15 @@ on:
permissions: {}

jobs:
repository:
name: "Repository"
uses: os-climate/osc-github-devops/.github/workflows/repository.yaml@main
permissions:
contents: read

github-release:
name: "Release"
if: startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[release]')
uses: os-climate/osc-github-devops/.github/workflows/github-release.yaml@main
needs:
- repository
name: "GitHub Release"
if: startsWith(github.ref, 'refs/tags/')
runs-on: "ubuntu-latest"
permissions:
# Needed both here and in the called workflow
contents: write
with:
build_tag: ${{ needs.repository.outputs.build_tag }}
steps:
- name: "GitHub Release"
uses: os-climate/osc-github-devops/.github/actions/github-release-action@main
with:
build_tag: ${{ github.ref_name }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8079c2d

Please sign in to comment.