Skip to content

Commit c3b7a32

Browse files
committed
[CICD] Added custom script
1 parent 6885cd5 commit c3b7a32

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

.github/workflows/helloCICD.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: MyFirstCICDPipeline
66
# events but only for the master branch
77
on:
88
push:
9-
branches: [ master ]
9+
branches: [master]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [master]
1212

1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
@@ -19,15 +19,9 @@ jobs:
1919

2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
2424

25-
# Runs a single command using the runners shell
26-
- name: Run a one-line script
27-
run: echo Hello, world!
28-
29-
# Runs a set of commands using the runners shell
30-
- name: Run a multi-line script
31-
run: |
32-
echo Add other actions to build,
33-
echo test, and deploy your project.
25+
# Runs a single command using the runners shell
26+
- name: Run our custom script
27+
run: ./custom.sh

custom.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
echo "Hello Github CI/CD!"

0 commit comments

Comments
 (0)