Skip to content

Commit

Permalink
fix(script): remove output from inside script
Browse files Browse the repository at this point in the history
gh output does not exist when running on circle ci
  • Loading branch information
lecrepont01 committed Aug 29, 2024
1 parent 333374a commit 41d144e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ jobs:
sleep 1
docker compose logs
- name: Echo gh output
run: |
echo "GITHUB_OUTPUT: $GITHUB_OUTPUT"
- name: Test Orb upload script
id: gigid
run: |
export FAKE_VALID_TOKEN=fake-valid-token
bash src/scripts/upload.sh
bash src/scripts/upload.sh >> "$GITHUB_OUTPUT"
env:
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
TOKEN: FAKE_VALID_TOKEN
Expand All @@ -64,6 +68,7 @@ jobs:
CI_ISSUE_GIGID: ${{ steps.gigid.outputs.CI_ISSUE_GIGID }}
run: |
set -e
echo "CI_ISSUE_GIGID: $CI_ISSUE_GIGID"
test "$CI_ISSUE_GIGID" = "1234azertyuiop"
- name: Mockserver logs
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ curl -X POST \

GIGID=$(cat result.json | jq -r .gigid)
echo "::notice title=CI Issues report::CI_ISSUE_GIGID=$GIGID"
echo "CI_ISSUE_GIGID=$GIGID" >> "$GITHUB_OUTPUT"
echo "CI_ISSUE_GIGID=$GIGID"
# >> "$GITHUB_OUTPUT"

0 comments on commit 41d144e

Please sign in to comment.