Skip to content

Commit

Permalink
ci: fix action outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sileht committed Aug 6, 2024
1 parent 7e03b17 commit 0bdbbea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ jobs:
- name:
run: docker compose up -d
- name: Run action 🔍
id: get-gigid
id: gigid
uses: ./
with:
token: fake-valid-token
report_paths: zfixtures/junit_example.xml
mergify_api_server: http://localhost:1080
- name: Check GIGID
env:
GIGID: ${{steps.get-gigid.outputs.GIGID}}
GIGID: ${{steps.gigid.outputs.GIGID}}
run: |
set -e
test "$GIGID" = "1234azertyuiop"
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ inputs:
description: URL of the Mergify API
default: https://api.mergify.com/v1
name:
description: name of the current workflow job
description: Name of the current workflow job
outputs:
GIGID:
description: Mergify CI Issues GIGID
value: ${{ steps.gigid.outputs.GIGID }}
runs:
using: composite
steps:
- shell: bash
id: gigid
env:
MERGIFY_API_SERVER: ${{ inputs.mergify_api_server }}
MERGIFY_CI_ISSUES_TOKEN: ${{ inputs.token }}
Expand Down

0 comments on commit 0bdbbea

Please sign in to comment.