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

approval flow to prod #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
29 changes: 22 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
job1:
hello:
# The type of runner that the job will run on
runs-on: ubuntu-latest

@@ -19,19 +19,21 @@ jobs:
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo "Hello"
job2:
world:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: hello

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo "...World!"

job3:
list:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: world

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
@@ -41,13 +43,26 @@ jobs:
- name: Run a one-line script
run: ls -lah

job4:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: world

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2

- name: Test
run: test -f ./rainbow-fruit.md

deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: test
environment: Production

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2

- name: Test
run: test -f ./rainbow-fruit.md
- name: deploy test
run: echo "Deployed!!!!"