mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Sets branch variable correctly
This commit is contained in:
parent
2687475ed0
commit
91858353c2
7
.github/workflows/docker_latest.yml
vendored
7
.github/workflows/docker_latest.yml
vendored
@ -11,11 +11,11 @@ on:
|
|||||||
- cron: '41 5 * * *'
|
- cron: '41 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
latest_branch:
|
branch:
|
||||||
description: "Branch from which to create the latest Docker image (default: latest_candidate)"
|
description: "Branch from which to create the latest Docker image (default: latest_candidate)"
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ${{ github.repository_owner }}/${{github.ref_name}}
|
default: latest_candidate
|
||||||
disable_tests:
|
disable_tests:
|
||||||
description: "Should the tests be skipped?"
|
description: "Should the tests be skipped?"
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -37,6 +37,7 @@ on:
|
|||||||
default: 'experimental'
|
default: 'experimental'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
BRANCH: ${{ github.repository_owner }}/${{ inputs.branch }}
|
||||||
PLATFORMS: ${{ inputs.platforms || 'linux/amd64,linux/arm64/v8' }}
|
PLATFORMS: ${{ inputs.platforms || 'linux/amd64,linux/arm64/v8' }}
|
||||||
TAG: ${{ inputs.tag || 'experimental' }}
|
TAG: ${{ inputs.tag || 'experimental' }}
|
||||||
DOCKER_HUB_OWNER: ${{ vars.DOCKER_HUB_OWNER || github.repository_owner }}
|
DOCKER_HUB_OWNER: ${{ vars.DOCKER_HUB_OWNER || github.repository_owner }}
|
||||||
@ -60,7 +61,7 @@ jobs:
|
|||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.latest_branch }}
|
ref: ${{ env.BRANCH }}
|
||||||
|
|
||||||
- name: Check out the ext/ directory
|
- name: Check out the ext/ directory
|
||||||
if: matrix.image.name != 'grist-oss'
|
if: matrix.image.name != 'grist-oss'
|
||||||
|
Loading…
Reference in New Issue
Block a user