Skip to content

Commit 3c1dccf

Browse files
committed
Using GITHUB_ENV instead
1 parent af26b36 commit 3c1dccf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/detect-api.changes.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
fetch-depth: 0
3535

3636
- name: 👾 Define Diff Versions
37-
id: diff_versions
3837
run: |
3938
NEW="${{ env.source }}~${{ env.githubRepo }}"
4039
if [[ '${{ github.head_ref || env.noTargetBranch }}' == 'release/*' ]]
@@ -48,9 +47,9 @@ jobs:
4847
echo "OLD=$OLD"
4948
echo "NEW=$NEW"
5049
51-
# Providing the output to the next step
52-
echo "OLD=$OLD" >> $GITHUB_OUTPUT
53-
echo "NEW=$NEW" >> $GITHUB_OUTPUT
50+
# Providing the output to the environment
51+
echo "OLD_VERSION=$OLD" >> $GITHUB_ENV
52+
echo "NEW_VERSION=$NEW" >> $GITHUB_ENV
5453
env:
5554
source: '${{ github.event.inputs.new || github.head_ref }}'
5655
target: '${{ github.event.inputs.old || github.event.pull_request.base.ref }}'
@@ -59,9 +58,9 @@ jobs:
5958

6059
- name: 🔍 Detect Changes
6160
run: |
62-
echo "OUTPUTS: ${{ env.steps.diff_versions.outputs }}"
63-
echo "NEW: ${{ env.steps.diff_versions.outputs.NEW }}"
64-
echo "OLD: ${{ env.steps.diff_versions.outputs.OLD }}"
61+
echo "OUTPUTS: ${{ env }}"
62+
echo "NEW: ${{ env.NEW_VERSION }}"
63+
echo "OLD: ${{ env.OLD_VERSION }}"
6564
6665
PROJECT_FOLDER=$PWD
6766
echo $PROJECT_FOLDER

0 commit comments

Comments
 (0)