Skip to content

Commit

Permalink
ci(workflows): use environment files
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Nov 26, 2022
1 parent 415aea1 commit e5e9385
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/label-linked-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
ref: main
- id: version
name: Get project version
run: echo "::set-output name=result::$(jq .version package.json -r)"
run: echo "result=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
- id: query
name: Query linked issues
uses: octokit/graphql-action@v2.2.23
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
ref: ${{ format('refs/tags/{0}', env.TAG) }}
- id: version
name: Get package version
run: echo "::set-output name=result::$(jq .version package.json -r)"
run: echo "result=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
- id: dist-tag
name: Get dist tag
uses: flex-development/dist-tag-action@1.1.2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ jobs:
ref: ${{ env.REF }}
- id: version
name: Get version
run: echo "::set-output name=result::$(jq .version package.json -r)"
run: echo "result=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
- id: tag-prefix
name: Get release tag prefix
run: echo "::set-output name=result::$(jq .tagPrefix package.json -r)"
run: echo "result=$(jq .tagPrefix package.json -r)" >> $GITHUB_OUTPUT
- id: tag
name: Get release tag
run: |
echo "::set-output name=result::${{ format('{0}{1}', steps.tag-prefix.outputs.result, steps.version.outputs.result) }}"
echo "result=${{ format('{0}{1}', steps.tag-prefix.outputs.result, steps.version.outputs.result) }}" >> $GITHUB_OUTPUT
- id: dist-tag
name: Get dist tag
uses: flex-development/dist-tag-action@1.1.2
Expand Down

0 comments on commit e5e9385

Please sign in to comment.