Which code block should be used to define the cleanup script?

As a DevOps engineer, you are developing a container action. You need to execute a cleanup script

after completing the main script execution.

Which code block should be used to define the cleanup script?

A)

B)

C)

D)

A . Option A
B . Option B
C . Option C
D . Option D

Answer: A

Explanation:

The correct syntax for specifying a cleanup script to be run after the main entry point is executed in a Docker-based GitHub Action is to use the post key. This ensures that cleanup.sh runs after the main script (main.sh) has completed.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments