Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
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
66 changes: 66 additions & 0 deletions 66 .github/workflows/clean-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Clean PR checks
on:
workflow_dispatch:
inputs:
pr:
description: PR to be cleaned
required: true
checks:
description: Checks to be cleaned
required: true
default: 'build/O2/o2,build/O2/gpu,build/AliceO2/O2/o2/macOS,build/o2checkcode/o2'
owner:
description: Organization
required: true
default: 'AliceO2Group'
repo:
description: Repository
required: true
default: 'AliceO2'

jobs:
cleanup_pr_checks:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install ali-bot
run: |
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
python -m pip install --upgrade pip
pip install git+https://github.com/alisw/ali-bot@master
- uses: octokit/graphql-action@v2.x
id: get_last_commit_for_pr
with:
query: |
{
repository(owner: "${{ github.event.inputs.owner }}", name: "${{ github.event.inputs.repo }}") {
url
pullRequest(number:${{ github.event.inputs.pr }}) {
commits(last: 1) {
nodes {
commit {
oid
}
}
}
}
}
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup tests
run: |-
set -x
cat <<\EOF > results.json
${{ steps.get_last_commit_for_pr.outputs.data }}
EOF
COMMIT=$(jq -r '.repository.pullRequest.commits.nodes[].commit.oid' results.json)
echo $COMMIT
for check in `echo ${{ github.event.inputs.checks }} | tr , \\n`; do
set-github-status -c ${{ github.event.inputs.owner }}/${{ github.event.inputs.repo }}@$COMMIT -s $check/pending
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.