Skip to content

Commit

Permalink
ci: Replace / with | in status to distinguish with BaseOS CI tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sergei Petrosian <[email protected]>
  • Loading branch information
spetrosi committed Jul 24, 2024
1 parent ab3cc8d commit 04b6dc5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/tft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[citest]') || contains(github.event.comment.body, '[citest-all]'))
&& (contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) || contains('systemroller', github.event.comment.user.login))
&& (contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR"]'), github.event.comment.author_association)
|| contains('systemroller', github.event.comment.user.login))
runs-on: ubuntu-latest
outputs:
supported_platforms: ${{ steps.supported_platforms.outputs.supported_platforms }}
Expand Down Expand Up @@ -51,7 +52,9 @@ jobs:
- name: Get memory
id: memory
run: |
memory=$(grep -rPo ' m: \K(.*)' tests/provision.fmf)
if [ -d tests/provision.fmf ]; then
memory=$(grep -rPo ' m: \K(.*)' tests/provision.fmf)
fi
if [ -n "$memory" ]; then
echo "memory=$memory" >> $GITHUB_OUTPUT
else
Expand Down Expand Up @@ -119,16 +122,17 @@ jobs:
with:
sha: ${{ needs.prepare_vars.outputs.head_sha }}
status: pending
context: ${{ matrix.platform }}/ansible-${{ matrix.ansible_version }}
context: ${{ matrix.platform }}|ansible-${{ matrix.ansible_version }}
description: Test started
targetUrl: ""

- name: Set commit status as success with a description that platform is skipped
if: "!contains(needs.prepare_vars.outputs.supported_platforms, matrix.platform)"
uses: myrotvorets/set-commit-status-action@master
with:
sha: ${{ needs.prepare_vars.outputs.head_sha }}
status: success
context: ${{ matrix.platform }}/ansible-${{ matrix.ansible_version }}
context: ${{ matrix.platform }}|ansible-${{ matrix.ansible_version }}
description: The role does not support this platform. Skipping.
targetUrl: ""

Expand Down Expand Up @@ -169,4 +173,4 @@ jobs:
sha: ${{ needs.prepare_vars.outputs.head_sha }}
status: ${{ job.status }}
targetUrl: ${{ env.ARTIFACTS_URL }}
context: ${{ matrix.platform }}/ansible-${{ matrix.ansible_version }}
context: ${{ matrix.platform }}|ansible-${{ matrix.ansible_version }}

0 comments on commit 04b6dc5

Please sign in to comment.