Skip to content

Commit

Permalink
Update build-remote.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN authored Jan 5, 2024
1 parent 16f2362 commit 92ec44f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: Build remote branch
run-name: "Build remote branch: ${{ inputs.repo }}#${{ inputs.branch }}"

on:
workflow_call:
inputs:
repo:
description: 'Repository'
type: string
required: true
branch:
description: 'Branch'
type: string
required: true
outputs:
artifact:
description: "Artifact name"
value: ${{ jobs.build.outputs.name }}
workflow_dispatch:
inputs:
repo:
Expand All @@ -14,6 +28,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
name: ${{ steps.package-info.outputs.name }}
steps:
- name: Info
run: |
Expand All @@ -34,7 +50,7 @@ jobs:
id: package-info
working-directory: dist
run: |
echo "::set-output name=name::$(node -p "require('./package.json').name")"
echo "name=$(node -p "require('./package.json').name")" >> $GITHUB_OUTPUT
- name: Print package info
run: echo ${{ steps.package-info.outputs.name }}
- name: Upload artifact
Expand Down

0 comments on commit 92ec44f

Please sign in to comment.