Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci-require-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CI Require Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
run-name: CI Require Labels by @${{ github.actor }} ${{ github.sha }}
permissions:
pull-requests: write
jobs:
require-labels:
runs-on: ubuntu-latest
steps:
- name: Require Labels
uses: nullify-platform/github-actions/actions/require-labels@main
35 changes: 28 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
name: Release

on:
push:
tags:
- 'v*'

branches:
- main
concurrency:
group: release
cancel-in-progress: true
run-name: Release by @${{ github.actor }} ${{ github.sha }}
permissions:
contents: write

pull-requests: read
jobs:
get-version:
name: Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Release Version
id: get-version
uses: nullify-platform/github-actions/actions/release-version@main
- run: |
echo "**Version:** ${{ steps.get-version.outputs.version }}" >> $GITHUB_STEP_SUMMARY

build:
if: ${{ needs.get-version.outputs.version != 'undefined' }}
needs: [get-version]
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -42,9 +61,11 @@ jobs:
path: slack-cli-${{ matrix.goos }}-${{ matrix.goarch }}

release:
needs: build
needs: [get-version, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
path: artifacts
Expand All @@ -53,4 +74,4 @@ jobs:
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ github.ref_name }} artifacts/* --repo ${{ github.repository }} --title "${{ github.ref_name }}" --generate-notes
run: gh release create "v${{ needs.get-version.outputs.version }}" artifacts/* --repo ${{ github.repository }} --title "v${{ needs.get-version.outputs.version }}" --generate-notes
Loading