From 8af032c475e4ffe6034d6322112a0e836815e767 Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Wed, 31 Jul 2024 08:55:31 +0200 Subject: [PATCH] GHA: Remove {pre,post}-action steps for self-hosted runners The following hooks: - ACTIONS_RUNNER_HOOK_JOB_STARTED - ACTIONS_RUNNER_HOOK_JOB_COMPLETED could perfectly replace the existing {pre,post}-action scripts and will make a workflow independent of the runner context. This commit wipes out all GHA steps where the actions are triggered. Signed-off-by: Hyounggyu Choi --- .github/workflows/ccruntime_e2e.yaml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/ccruntime_e2e.yaml b/.github/workflows/ccruntime_e2e.yaml index 8fd6eec8..1a47693c 100644 --- a/.github/workflows/ccruntime_e2e.yaml +++ b/.github/workflows/ccruntime_e2e.yaml @@ -44,12 +44,6 @@ jobs: instance: "sev-snp" runs-on: ${{ matrix.instance }} steps: - - name: Take a pre-action for self-hosted runner - run: | - if [ -f ${HOME}/script/pre_action.sh ]; then - ${HOME}/script/pre_action.sh cc-operator - fi - - uses: actions/checkout@v4 with: ref: ${{ inputs.commit-hash }} @@ -79,10 +73,3 @@ jobs: env: RUNNING_INSTANCE: ${{ matrix.instance }} GITHUB_TOKEN: ${{ github.token }} - - - name: Take a post-action - if: always() - run: | - if [ -f ${HOME}/script/post_action.sh ]; then - ${HOME}/script/post_action.sh cc-operator - fi