Skip to content

Commit 899ebcb

Browse files
authored
Merge pull request #15 from knaopel/v1.19.0
Pass variable to sub task
2 parents c36a860 + a126992 commit 899ebcb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/test-and-build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
name: Package SPFx solution
6464
runs-on: ubuntu-latest
6565
needs: test
66+
outputs:
67+
tag-name: ${{ steps.set-tag-name.outputs.tag-name }}
6668
if: ${{ github.event_name == 'push' }}
6769
steps:
6870
- name: Check out git repository
@@ -73,15 +75,17 @@ jobs:
7375
uses: zoexx/github-action-json-file-properties@release
7476
with:
7577
file_path: config/package-solution.json
78+
prop_path: solution.version
7679

7780
- name: Tag Repo
7881
run: |
79-
git tag -f v${{ steps.json_properties.outputs.solution.version }}
82+
git tag -f v${{ steps.json_properties.outputs.value }}
8083
git push --tags --force
8184
8285
- name: Set Variable value
86+
id: set-tag-name
8387
run: |
84-
echo "TAG_NAME=${{ steps.json_properties.outputs.solution.version }}" >> $GITHUB_OUTPUT
88+
echo "tag-name=${{ steps.json_properties.outputs.value }}" >> $GITHUB_OUTPUT
8589
8690
- name: Install Node.js v${{ env.NODE_VERSION }}, and NPM
8791
uses: actions/setup-node@v4
@@ -111,7 +115,7 @@ jobs:
111115
# env:
112116
# TAG_NAME: ${{needs.package.outputs.TAG_NAME }}
113117
with:
114-
tag_name: ${{ needs.package.outputs.TAG_NAME }}
118+
tag_name: ${{ needs.package.outputs.tag-name }}
115119
artifact_name: sp-pkg
116120
# name: Release SPFx solution
117121
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)