Skip to content

Commit

Permalink
checkout spcific version
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaz-polymath authored Sep 29, 2023
1 parent 4be3f45 commit a23fd8b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker-build-push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ on:
types:
- completed
# Allow running workflow manually from the Actions tab
# workflow_dispatch:
workflow_dispatch:

inputs:
version:
description: 'Version to build'
required: true
# Leaving in example for releases. Initially we simply push to 'latest'
# on:
# release:
Expand All @@ -33,8 +37,13 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout
uses: actions/checkout@v3
- name: Checkout code at specified version
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.version }}

# - name: checkout
# uses: actions/checkout@v3

- name: Git submodule update
run: |
Expand Down

0 comments on commit a23fd8b

Please sign in to comment.