Allow specifying ref on reusable workflows (#2547)
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
ref:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: "The git ref to checkout, defaults to the default branch"
|
||||||
arch:
|
arch:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@@ -76,6 +80,9 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
|
with:
|
||||||
|
repository: element-hq/element-desktop
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ on:
|
|||||||
APPLE_CSC_LINK:
|
APPLE_CSC_LINK:
|
||||||
required: false
|
required: false
|
||||||
inputs:
|
inputs:
|
||||||
|
ref:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: "The git ref to checkout, defaults to the default branch"
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
@@ -52,6 +56,9 @@ jobs:
|
|||||||
environment: ${{ inputs.sign && 'packages.element.io' || '' }}
|
environment: ${{ inputs.sign && 'packages.element.io' || '' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
|
with:
|
||||||
|
repository: element-hq/element-desktop
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ on:
|
|||||||
ESIGNER_USER_TOTP:
|
ESIGNER_USER_TOTP:
|
||||||
required: false
|
required: false
|
||||||
inputs:
|
inputs:
|
||||||
|
ref:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: "The git ref to checkout, defaults to the default branch"
|
||||||
arch:
|
arch:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@@ -81,6 +85,9 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
|
with:
|
||||||
|
repository: element-hq/element-desktop
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user