-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (33 loc) · 1.2 KB
/
continuous-integration-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: My first github actions workflow
# This workflow is triggered on pushes to the repository.
on: [push]
jobs:
job-1:
# Job name is Greeting
name: Job1-continious-integration
# This job runs on Linux
runs-on: ubuntu-latest
steps:
# This step uses GitHub's hello-world-javascript-action: https://github.com/actions/hello-world-javascript-action
- name: step-1-in-job-1-Hello world
uses: actions/hello-world-javascript-action@v1
with:
who-to-greet: 'Mona the Octocat'
id: hello
# This step prints an output (time) from the previous step's action.
- name: step-2-in-job-1-Echo the greeting's time
run: echo 'The time was ${{ steps.hello.outputs.time }}.'
job-2:
name: Job-2-continious-integration
runs-on: ubuntu-latest
steps:
- name: step-1-in-job-2-showing-how-to-use-env-variables
run: echo Hello world $FIRST_NAME $middle_name $Last_Name!
env:
FIRST_NAME: Mona
middle_name: The
Last_Name: Octocat
- name: step-2-in-job-2-showing-how-to-use-secrets
run: echo the secret value is $my_secret
env:
my_secret: ${{secrets.amir_key}}