Skip to content

Commit

Permalink
Update variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Sep 15, 2023
1 parent 1e7a9b6 commit 909c3ab
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ jobs:
test-action:
runs-on: ubuntu-latest
name: Ensure that the Kani action continues to work
outputs:
output1: ${{steps.set_error.outputs.test}}
steps:
# To use this repository's private action,
# you must check out the repository
Expand All @@ -17,17 +15,14 @@ jobs:

- name: Run Kani with invalid version
id: set_error
uses: ./
with:
working-directory: tests/cargo-kani/simple-lib
kani-version: '0.47.0'
runs: |
output=$(./src/install-kani.sh "0.47.0")
echo "MY_VARIABLE=$output" >> $GITHUB_ENV
continue-on-error: true # Continue to the next steps even if this job fails

- name: Debug previous step
id: debug_step
env:
S_OUTPUT: ${{ steps.set_error.outputs.test }}
run: echo "The selected color is $S_OUTPUT"
run: echo "The selected color is $MY_VARIABLE"

- name: Run Kani with older version
uses: ./ # Uses the action in the root directory
Expand Down

0 comments on commit 909c3ab

Please sign in to comment.