Skip to content

Commit

Permalink
modifying variables between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Do committed Feb 7, 2024
1 parent 2663104 commit e0c8bd6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/temp_ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ jobs:

- name: sanity check 1
id: changed-files
# uses: tj-actions/changed-files@v42
env:
CHANGED_MODULES: ${{ env.CHANGED_MODULES }} 1
# with:
# since_last_remote_commit: false
run:
echo $CHANGED_MODULES
run: echo "MY_VARIABLE=sus" >> $GITHUB_ENV

- name: sanity check 2
id: changed-files2
env:
CHANGED_MODULES: ${{ env.CHANGED_MODULES }} 2
needs: changed-files
run: |
echo $MY_VARIABLE
echo "MY_VARIABLE=$MY_VARIABLE SUS" >> $GITHUB_ENV
- name: sanity check 3
id: changed-files3
needs: changed-files2
run:
echo $CHANGED_MODULES
echo $MY_VARIABLE

- name: Find changed files inside action folder
id: changed-files-action
Expand Down

0 comments on commit e0c8bd6

Please sign in to comment.