Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #152

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

test #152

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/operator_ci_installation_label.yaml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/operator_test_report_openshift_status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,48 @@ jobs:
repo: context.repo.repo,
labels: context.payload.client_payload.add_labels
})

- uses: actions/github-script@v4
id: labels
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const labels = await github.issues.listLabelsOnIssue({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
})
console.log(labels.data)
return labels.data

- name: Add installation final label
uses: actions/github-script@v3
if: |
(!contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-failed')) &&
(!contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-failed-4.7')) &&
(!contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-failed-4.8')) &&
(contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-validated')) &&
(contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-validated-4.7')) &&
(contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-validated-4.8'))
continue-on-error: true
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: [ 'installation-validated-4.6' ]
})

- uses: actions/github-script@v3
if: |
(!contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-failed')) &&
(!contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-failed-4.7')) &&
(!contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-failed-4.8')) &&
(contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-validated')) &&
(contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-validated-4.7')) &&
(contains(fromJSON(steps.labels.outputs.result).*.name, 'installation-validated-4.8'))
with:
github-token: ${{ secrets.FRAMEWORK_MERGE }}
script: |
Expand All @@ -59,3 +100,4 @@ jobs:
})
}
}

2 changes: 2 additions & 0 deletions scripts/ci/openshift-deploy-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,5 @@ echo "OP_NAME=$OP_NAME"
echo "OP_VER=$OP_VER"

if [ $ANSIBLE_STATUS -gt 0 ]; then echo "Ansible failed, see output above"; exit 1; fi

#remove special settings for 4.6