Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: validate draft #4

Merged
merged 3 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/validate-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Validate draft
on:
pull_request:

jobs:
validate-draft:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}

- name: Validate Quest
uses: trywilco/uploadQuestAction@main
with:
quest-editor-user-token: ${{ secrets.QUESTS_EDITOR_TOKEN }}
quest-editor-user-email: [email protected]
only-validate: true
6 changes: 6 additions & 0 deletions quest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ description: Sometimes, the Product department comes to you with a monumental ch
summary: Congratulations, you now know how to automate simple, repetitive tasks using a bash script. Hopefully, it'll save you a lot of time in the future.
level: beginner
steps:
- codespace_start
- bash_filter
- bash_extract_names
- bash_script
Expand All @@ -14,3 +15,8 @@ skills:
- Operations
questDependency: docker_localsetup
slogan: Everything Works If You Bash It Hard Enough
repository: https://github.com/trywilco/empty-repo-for-quest
frameworks:
backend: null
frontend: null

28 changes: 28 additions & 0 deletions steps/codespace_start.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
id: codespace_start
learningObjectives:
- Running codespace
hints: []
startFlow:
do:
- actionId: bot_message
params:
person: keen
messages:
- text: "Before we continue, please **[open your new Codespace virtual dev environment](${platform.baseUrl}/my-codespace)** or click on Codespace from the Wilco Chat side menu."
- text: "Please remember, your Codespace (virtual machine) can go idle. You can restart your Codespace by going into your Codespace and clicking restart."
delay: 1400
- actionId: ready_message
params:
person: keen

trigger:
type: user_ready_response
flowNode:
do:
- actionId: bot_message
params:
person: keen
messages:
- text: "Cool. let's move on!"
delay: 500
- actionId: finish_step
Loading