GHA: Put all the preliminary steps into pre-action for s390x

This is to introduce a pre-action to all the workflows for building artifacts.
The action could take care of tasks such as cleaning up files and reinstalling
packages, which prevents a workflow from getting affected by the environment.

This also includes the removal of the step `Adjust a permission for repo`,
because it could be incorporated into the action.

Fixes: #8648

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
Hyounggyu Choi
2023-12-13 09:06:54 +01:00
parent dfaf006fcc
commit 05e278de5b
5 changed files with 9 additions and 23 deletions

View File

@@ -45,9 +45,6 @@ jobs:
USING_NFD: "true"
TARGET_ARCH: "s390x"
steps:
- name: Adjust a permission for repo
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
- name: Take a pre-action for self-hosted runner
run: ${HOME}/script/pre_action.sh ubuntu-2204