Skip to content

Commit 00198f8

Browse files
tryvinrlespinasse
andauthored
fix: use environment file to manage outputs
Co-authored-by: Vin <vin@8sistemas.com> Co-authored-by: Romain Lespinasse <romain.lespinasse@gmail.com>
1 parent 9c3571f commit 00198f8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858

5959
# Calculated values
6060
- id: get-github-ref-name
61-
run: echo "::set-output name=github-ref-name::${{ github.head_ref || github.ref_name }}"
61+
run: echo "github-ref-name=${{ github.head_ref || github.ref_name }}" >> "$GITHUB_OUTPUT"
6262
shell: bash
6363
- uses: rlespinasse/slugify-value@v1.3.2
6464
with:
@@ -67,7 +67,7 @@ runs:
6767
prefix: ${{ inputs.prefix }}
6868
slug-maxlength: ${{ inputs.slug-maxlength }}
6969
- id: get-github-repository-owner-part
70-
run: echo "::set-output name=github-repository-owner-part::$(echo $GITHUB_REPOSITORY | cut -d/ -f1)"
70+
run: echo "github-repository-owner-part=$(echo $GITHUB_REPOSITORY | cut -d/ -f1)" >> "$GITHUB_OUTPUT"
7171
shell: bash
7272
- uses: rlespinasse/slugify-value@v1.3.2
7373
with:
@@ -76,7 +76,7 @@ runs:
7676
prefix: ${{ inputs.prefix }}
7777
slug-maxlength: ${{ inputs.slug-maxlength }}
7878
- id: get-github-repository-name-part
79-
run: echo "::set-output name=github-repository-name-part::$(echo $GITHUB_REPOSITORY | cut -d/ -f2)"
79+
run: echo "github-repository-name-part=$(echo $GITHUB_REPOSITORY | cut -d/ -f2)" >> "$GITHUB_OUTPUT"
8080
shell: bash
8181
- uses: rlespinasse/slugify-value@v1.3.2
8282
with:

preflight.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ else
3131
fi
3232
fi
3333
echo "::debug ::Set PREFLIGHT_SHORT_LENGTH=$PREFLIGHT_SHORT_LENGTH"
34-
echo "::set-output name=PREFLIGHT_SHORT_LENGTH::$PREFLIGHT_SHORT_LENGTH"
34+
echo "PREFLIGHT_SHORT_LENGTH=$PREFLIGHT_SHORT_LENGTH" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)