Skip to content

Commit

Permalink
fix: syntax of outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
loboda4450 committed Sep 3, 2024
1 parent 3984684 commit be624a7
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/api"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/api:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/console"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/console:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-conversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/conversion"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/conversion:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-idp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/idp"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/idp:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/language"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/language:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/migrations"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/migrations:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-mosaic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/mosaic"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/mosaic:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/ui"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/ui:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-webdav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ jobs:
prepare_env:
runs-on: ubuntu-latest
outputs:
branch: ${{ input_branch.input_branch.outputs.branch }}
tags: ${{ input_branch.input_branch.outputs.tags }}
branch: ${{ steps.input_branch.outputs.branch }}
tags: ${{ steps.tag.outputs.tags || steps.tags.outputs.tags }}
steps:
- name: Prepare input branch
id: input_branch
if: ${{ github.event.inputs.branch != '' }}
run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_OUTPUT

- name: Create tag list matching semver from executing tag
id: tag
if: ${{ github.ref_type == 'tag' }}
run: |
name="voltaserve/webdav"
Expand All @@ -56,6 +57,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Set the tag on workflow dispatch
id: tags
if: ${{ github.ref_type != 'tag' }}
run: echo "tags=voltaserve/webdav:$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down

0 comments on commit be624a7

Please sign in to comment.