Skip to content

Commit

Permalink
check output
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi He committed Jul 12, 2024
1 parent 8ae50a2 commit 40a214c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 35 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/nopr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: RHEL for Edge test on RHEL 9

on:
issue_comment:
types:
- created

jobs:
no-pr:
runs-on: ubuntu-latest

steps:
- name: Run the tests
uses: sclorg/testing-farm-as-github-action@v2
with:
compose: RHEL-9.5.0-Nightly
arch: x86_64
api_key: ${{ secrets.TF_API_KEY }}



14 changes: 3 additions & 11 deletions .github/workflows/rhel-95.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }}
ref: ${{ fromJson(steps.pr-api.outputs.data).head.ref }}
repo_url: ${{ fromJson(steps.pr-api.outputs.data).head.repo.html_url }}
sender_repo: ${{ fromJson(steps.pr-api.outputs.data).head.repo.full_name }}

edge-rhel-95:
needs: pr-info
Expand All @@ -39,14 +40,5 @@ jobs:
with:
compose: RHEL-9.5.0-Nightly
arch: x86_64
#api_key: ${{ secrets.TF_API_KEY }}
#git_url: ${{ needs.pr-info.outputs.repo_url }}
#git_ref: ${{ needs.pr-info.outputs.ref }}
github_token: ${{ secrets.PAT }}
# update_pull_request_status: true
# tmt_context: "arch=x86_64;distro=rhel-9-5"
# pull_request_status_name: "edge-rhel-9.5"
# tmt_plan_regex: edge
# tf_scope: private
#secrets: "DOWNLOAD_NODE=${{ secrets.DOWNLOAD_NODE }};V2_QUAY_PASSWORD=${{ secrets.V2_QUAY_PASSWORD }};V2_QUAY_USERNAME=${{ secrets.V2_QUAY_USERNAME }};AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }};AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }};GOVC_URL=${{ secrets.GOVC_URL }};GOVC_USERNAME=${{ secrets.GOVC_USERNAME }};GOVC_PASSWORD=${{ secrets.GOVC_PASSWORD }}"
#variables: "ARCH=x86_64;AWS_DEFAULT_REGION=us-east-1;GOVC_INSECURE=1;EDGE_USER_PASSWORD=foobar;CI=true;GIT_COMMIT=${{ needs.pr-info.outputs.sha }}"
debug: true

29 changes: 5 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,17 @@ jobs:
sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }}
ref: ${{ fromJson(steps.pr-api.outputs.data).head.ref }}
repo_url: ${{ fromJson(steps.pr-api.outputs.data).head.repo.html_url }}
sender_repo: ${{ fromJson(steps.pr-api.outputs.data).head.repo.full_name }}

check-outputs:
needs: pr-info
runs-on: ubuntu-latest

steps:
- name: Get PR number from string PR-xxxx
id: pr-num
- name: check outputs
id: check-output
run: |
echo "sha is: ${{ needs.pr-info.outputs.sha }}"
echo "ref is: ${{ needs.pr-info.outputs.ref }}"
echo "repo_url is: ${{ needs.pr-info.outputs.repo_url }}"
edge-rhel-95:
needs: pr-info
runs-on: ubuntu-latest

steps:
- name: Run the tests
uses: sclorg/testing-farm-as-github-action@v2
with:
compose: RHEL-9.5.0-Nightly
arch: x86_64
#api_key: ${{ secrets.TF_API_KEY }}
#git_url: ${{ needs.pr-info.outputs.repo_url }}
#git_ref: ${{ needs.pr-info.outputs.ref }}
github_token: ${{ secrets.PAT }}
# update_pull_request_status: true
# tmt_context: "arch=x86_64;distro=rhel-9-5"
# pull_request_status_name: "edge-rhel-9.5"
# tmt_plan_regex: edge
# tf_scope: private
#secrets: "DOWNLOAD_NODE=${{ secrets.DOWNLOAD_NODE }};V2_QUAY_PASSWORD=${{ secrets.V2_QUAY_PASSWORD }};V2_QUAY_USERNAME=${{ secrets.V2_QUAY_USERNAME }};AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }};AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }};GOVC_URL=${{ secrets.GOVC_URL }};GOVC_USERNAME=${{ secrets.GOVC_USERNAME }};GOVC_PASSWORD=${{ secrets.GOVC_PASSWORD }}"
#variables: "ARCH=x86_64;AWS_DEFAULT_REGION=us-east-1;GOVC_INSECURE=1;EDGE_USER_PASSWORD=foobar;CI=true;GIT_COMMIT=${{ needs.pr-info.outputs.sha }}"
echo "sender_repo is: ${{ needs.pr-info.outputs.sender_repo }}"

0 comments on commit 40a214c

Please sign in to comment.