Skip to content

Commit

Permalink
added REF to inputs in ci-build
Browse files Browse the repository at this point in the history
  • Loading branch information
Aye Min Aung committed Sep 27, 2023
1 parent 625f952 commit 95e8853
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ on:
default: .
description: Whenever the WF requires a different path than . for the revision file
required: false
REF:
type: string
description: ref to pull and build default to github.ref
required: false
secrets:
DOCKERHUB_USERNAME:
required: false
Expand Down Expand Up @@ -153,15 +157,15 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref || github.ref }}
ref: ${{ inputs.REF || github.ref }}
fetch-depth: 0

- uses: actions/checkout@v3
name: Checkout private submoules recursively
id: private
if: ${{ inputs.SUBMODULES_RECURSIVE == true && inputs.SUBMODULES_PRIVATE == true }}
with:
ref: ${{ github.event.pull_request.head.ref || github.ref }}
ref: ${{ inputs.REF || github.ref }}
ssh-key: ${{ secrets.GH_BOT_DEPLOY_KEY }}
token: ${{ secrets.GH_BOT_DEPLOY_TOKEN || github.token }}
submodules: 'recursive'
Expand All @@ -171,7 +175,7 @@ jobs:
id: public
if: ${{ inputs.SUBMODULES_RECURSIVE == true && inputs.SUBMODULES_PRIVATE == false }}
with:
ref: ${{ github.event.pull_request.head.ref || github.ref }}
ref: ${{ inputs.REF || github.ref }}
submodules: 'recursive'

- run: git submodule status > ${{inputs.REVISION_PATH}}/REVISION
Expand Down

0 comments on commit 95e8853

Please sign in to comment.