Post regtest results comment #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Post regtest results comment | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
type: environment | |
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: | |
PLAYWRIGHT_BROWSERS_PATH: ${{ secrets.PLAYWRIGHT_BROWSERS_PATH }} | |
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/[email protected] | |
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 TESTING_OWNER=${{ github.repository_owner }} | |
cpac_regsuite_generate_comment ${{ env.SSH_WORK_DIR }}/lite/${{ env.SHA }}/correlations | |
- name: Cleanup SSH | |
run: | | |
rm -rf ~/.ssh |