Skip to content

Commit

Permalink
[CICD] Added custom script
Browse files Browse the repository at this point in the history
  • Loading branch information
strobsi committed Aug 25, 2020
1 parent 6885cd5 commit c3b7a32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/helloCICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: MyFirstCICDPipeline
# events but only for the master branch
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

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

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

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
# Runs a single command using the runners shell
- name: Run our custom script
run: ./custom.sh
3 changes: 3 additions & 0 deletions custom.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "Hello Github CI/CD!"

0 comments on commit c3b7a32

Please sign in to comment.