Skip to content

Commit

Permalink
Test CI again (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiharju authored Feb 22, 2025
1 parent b942216 commit 5e10761
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: Publish

on:
workflow_call:
inputs:
Expand Down Expand Up @@ -61,4 +59,4 @@ jobs:
message: |
Update vmatch formula to ${{ inputs.version }}
https://github.com/anttiharju/vmatch/blob/${{ github.sha }}/.github/workflows/publish.yml
https://github.com/anttiharju/vmatch/blob/${{ github.sha }}/.github/workflows/distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
branches:
- main
paths:
paths: # opposite of release.yml
- "!pkg/**"
- "!main.go"
- "!go.mod"
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ on:
- "go.mod"

jobs:
# First check happened on pull_request event
# Second check happens on push to main
double-check:
name: Double check
uses: ./.github/workflows/validate.yml
project:
name: Project
uses: ./.github/workflows/project.yml

release:
name: Release
needs: double-check
needs: project
runs-on: ubuntu-24.04
permissions:
contents: write
Expand All @@ -38,10 +36,10 @@ jobs:
go_version: ${{ steps.get-metadata.outputs.go_version }}
version: ${{ steps.get-metadata.outputs.version }}

publish:
name: Publish
distribute:
name: Distribute
needs: release
uses: ./.github/workflows/publish.yml
uses: ./.github/workflows/distribute.yml
permissions:
contents: write
with:
Expand Down

0 comments on commit 5e10761

Please sign in to comment.