Skip to content

Commit

Permalink
GHA: Remove {pre,post}-action steps for self-hosted runners
Browse files Browse the repository at this point in the history
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 <Hyounggyu.Choi@ibm.com>
  • Loading branch information
BbolroC committed Jul 31, 2024
1 parent 8d837bb commit 8af032c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/ccruntime_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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

0 comments on commit 8af032c

Please sign in to comment.