Skip to content

Post regtest results comment #3

Post regtest results comment

Post regtest results comment #3

Workflow file for this run

name: Post regtest results comment
on:
workflow_dispatch:
inputs:
environment:
type: environment
OWNER:
description: Owner of repository to comment on
type: string
required: false
REPO:
description: Repository to comment on
type: string
default: C-PAC
required: false
SHA:
description: SHA of commit to comment on
type: string
required: true
jobs:
post_to_commit:
name: Post results comment to GitHub
environment: ACCESS
env:
OWNER: ${{ inputs.OWNER || github.repository_owner }}
PLAYWRIGHT_BROWSERS_PATH: ${{ secrets.PLAYWRIGHT_BROWSERS_PATH }}
REPO: ${{ inputs.REPO }}
SHA: ${{ inputs.SHA }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_WORK_DIR: ${{ secrets.SSH_WORK_DIR }}
TOKEN_FILE: ${{ secrets.TOKEN_FILE }}
runs-on: ubuntu-latest
steps:
- name: Post comment from HPC
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ env.SSH_HOST }}
username: ${{ env.SSH_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
command_timeout: 200m
script: |
export TOKEN_FILE=${{ env.TOKEN_FILE }}
if [ -n "${TOKEN_FILE}" ]
then
source ${TOKEN_FILE}
fi
export OWNER=${{ env.OWNER }}
export PLAYWRIGHT_BROWSERS_PATH=${{ env.PLAYWRIGHT_BROWSERS_PATH }}
export REPO=${{ env.REPO }}
export SHA=${{ env.SHA }}
export TESTING_OWNER=${{ github.repository_owner }}
cpac_regsuite_generate_comment ${{ env.SSH_WORK_DIR }}/lite/${{ env.SHA }}/correlations
- name: Cleanup SSH
run: |
rm -rf ~/.ssh