ci: Add ability to specify git ref (#598)

This commit is contained in:
Anatolios Laskaris 2022-12-02 10:15:26 +02:00 committed by GitHub
parent daba370126
commit eccc47bb73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,8 @@ jobs:
aqua: aqua:
name: "aqua" name: "aqua"
uses: ./.github/workflows/snapshot.yml uses: ./.github/workflows/snapshot.yml
with:
ref: ${{ github.ref }}
aqua-playground: aqua-playground:
needs: aqua needs: aqua

View File

@ -7,6 +7,10 @@ on:
description: "@fluencejs/fluence version" description: "@fluencejs/fluence version"
type: string type: string
default: "null" default: "null"
ref:
description: "git ref to checkout to"
type: string
default: "main"
outputs: outputs:
aqua-version: aqua-version:
description: "@fluencelabs/aqua version" description: "@fluencelabs/aqua version"
@ -25,6 +29,7 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: fluencelabs/aqua repository: fluencelabs/aqua
with: ${{ inputs.ref }}
- name: Generate version - name: Generate version
id: version id: version