Rename CI workflow 'ref' inputs to 'target'
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
target:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Checkout branch
|
- name: Checkout branch
|
||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.target }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
|
|||||||
@@ -81,6 +81,6 @@ jobs:
|
|||||||
if: ${{ needs.check-if-release-needed.outputs.has-new-commits == 'true' }}
|
if: ${{ needs.check-if-release-needed.outputs.has-new-commits == 'true' }}
|
||||||
uses: ./.github/workflows/publish-release.yml
|
uses: ./.github/workflows/publish-release.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.ref }}
|
target: ${{ github.event.ref }}
|
||||||
tag: nightly
|
tag: nightly
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ name: Harden CI security
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
target:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -15,5 +15,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.target }}
|
||||||
- name: Ensure all actions are pinned to a specific commit
|
- name: Ensure all actions are pinned to a specific commit
|
||||||
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@555a30da2656b4a7cf47b107800bef097723363e # v2.1.3
|
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@555a30da2656b4a7cf47b107800bef097723363e # v2.1.3
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ jobs:
|
|||||||
run-tests:
|
run-tests:
|
||||||
uses: ./.github/workflows/run-tests.yml
|
uses: ./.github/workflows/run-tests.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.ref }}
|
target: ${{ github.event.ref }}
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
uses: ./.github/workflows/publish-release.yml
|
uses: ./.github/workflows/publish-release.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.ref }}
|
target: ${{ github.event.ref }}
|
||||||
tag: latest
|
tag: latest
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ jobs:
|
|||||||
run-tests:
|
run-tests:
|
||||||
uses: ./.github/workflows/run-tests.yml
|
uses: ./.github/workflows/run-tests.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.ref }}
|
target: ${{ github.event.ref }}
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ jobs:
|
|||||||
harden-ci-security:
|
harden-ci-security:
|
||||||
uses: ./.github/workflows/harden-ci-security.yml
|
uses: ./.github/workflows/harden-ci-security.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
target: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
run-tests-for-pr:
|
run-tests-for-pr:
|
||||||
uses: ./.github/workflows/run-tests.yml
|
uses: ./.github/workflows/run-tests.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
target: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ jobs:
|
|||||||
harden-ci-security:
|
harden-ci-security:
|
||||||
uses: ./.github/workflows/harden-ci-security.yml
|
uses: ./.github/workflows/harden-ci-security.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.ref }}
|
target: ${{ github.event.ref }}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ name: Publish release
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
target:
|
||||||
description: "The git ref to checkout, build from and release"
|
description: "The git ref to checkout, build from and release"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@@ -69,7 +69,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
target: ${{ inputs.target }}
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -159,7 +159,7 @@ jobs:
|
|||||||
- name: Publish release
|
- name: Publish release
|
||||||
uses: notpeelz/action-gh-create-release@a12edfc71daf5daa7922b931c28e2bf88d3b2ced # v5.0.0
|
uses: notpeelz/action-gh-create-release@a12edfc71daf5daa7922b931c28e2bf88d3b2ced # v5.0.0
|
||||||
with:
|
with:
|
||||||
target: ${{ inputs.ref }}
|
target: ${{ inputs.target }}
|
||||||
tag: ${{ inputs.tag }}
|
tag: ${{ inputs.tag }}
|
||||||
prerelease: ${{ inputs.prerelease }}
|
prerelease: ${{ inputs.prerelease }}
|
||||||
strategy: replace
|
strategy: replace
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ name: Run tests
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
target:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||||
with:
|
with:
|
||||||
repository: ${{ inputs.repository }}
|
repository: ${{ inputs.repository }}
|
||||||
ref: ${{ inputs.ref }}
|
target: ${{ inputs.target }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
|
|||||||
Reference in New Issue
Block a user