fix: Updated workflows to checkout on commit of commit-version-bump (#7217)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Brian Choromanski
2026-03-18 18:44:39 -04:00
committed by GitHub
parent 26924ab054
commit 78ff4bb875
5 changed files with 29 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ on:
tag:
required: true
type: string
ref:
required: false
type: string
jobs:
build-frontend:
@@ -15,6 +18,8 @@ jobs:
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
- name: Setup node env 🏗
uses: actions/setup-node@v4.0.0

View File

@@ -9,6 +9,9 @@ on:
tags:
required: false
type: string
ref:
required: false
type: string
secrets:
DOCKERHUB_USERNAME:
required: true
@@ -21,6 +24,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
- name: Log in to the Container registry (ghcr.io)
uses: docker/login-action@v3

View File

@@ -60,12 +60,16 @@ jobs:
uses: ./.github/workflows/test-backend.yml
needs:
- commit-version-bump
with:
ref: ${{ needs.commit-version-bump.outputs.commit-sha }}
frontend-tests:
name: "Frontend Tests"
uses: ./.github/workflows/test-frontend.yml
needs:
- commit-version-bump
with:
ref: ${{ needs.commit-version-bump.outputs.commit-sha }}
build-package:
name: Build Package
@@ -74,6 +78,7 @@ jobs:
- commit-version-bump
with:
tag: ${{ github.event.release.tag_name }}
ref: ${{ needs.commit-version-bump.outputs.commit-sha }}
publish:
permissions:
@@ -90,7 +95,9 @@ jobs:
- backend-tests
- frontend-tests
- build-package
- commit-version-bump
with:
ref: ${{ needs.commit-version-bump.outputs.commit-sha }}
tag: ${{ github.event.release.tag_name }}
tags: |
hkotel/mealie:latest

View File

@@ -2,6 +2,10 @@ name: Backend Lint and Test
on:
workflow_call:
inputs:
ref:
required: false
type: string
jobs:
tests:
@@ -43,6 +47,8 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
- name: Set up python
uses: actions/setup-python@v5

View File

@@ -2,6 +2,10 @@ name: Frontend Lint and Test
on:
workflow_call:
inputs:
ref:
required: false
type: string
jobs:
lint:
@@ -10,6 +14,8 @@ jobs:
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
- name: Setup node env 🏗
uses: actions/setup-node@v4.0.0