Câu 31: GH-200: GitHub Actions
You are a DevOps engineer working on a custom action. You want to conditionally run a script at the start of the action, before the main entrypoint. Which code block should be used to define the metadata file for your custom action?
Nội dung câu hỏi
You are a DevOps engineer working on a custom action. You want to conditionally run a script at the start of the action, before the main entrypoint. Which code block should be used to define the metadata file for your custom action?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. runs:using: 'nodel6'pre-if: github.event_name == 'push' then 'start.js'main: 'index.js'
- B. runs:using: 'nodel6'pre: 'start.js'pre-if: github.event_name == 'push'main: 'index.js' — đáp án hiện tại
- C. runs:using: 'nodel6'start: 'start.js'start-if: github.event_name == 'push'main: 'index.js'
- D. runs:using: 'nodel6'before: 'start.js'before-if: github.event_name == 'push'main: 'index.js’
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.