Skip to content

Commit 15a1eb6

Browse files
authored
Refactor CI workflow configuration
Updated CI workflow to include manual dispatch and corrected syntax.
1 parent 377cad3 commit 15a1eb6

1 file changed

Lines changed: 22 additions & 14 deletions

File tree

.github/workflows/main.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
2-
name: CI
1+
on:
32

4-
#Controls when the workflow will run
5-
on:
3+
push:
4+
branches: ["main"]
65

7-
#Triggers the workflow on push or pull request events but for only the main branch
8-
push:
9-
branches: [main]
10-
pull_request:
11-
branches: [main]
12-
# Allows you to run this workflow manually from the actions tab
13-
workflow_dispatch:
6+
pull_request:
7+
branches: ["main"]
148

15-
# A workflow run is made up of one or more jobs that run sequentially or in parallkel
9+
#Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
1611

1712
jobs:
13+
build:
14+
runs-on: ubuntu-latest
1815

19-
build:
16+
# Steps represent a sequence of tasks that will be executed as part of the job
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- uses: actions/checkout@v3
2020

21-
runs-on: ubuntu-latest
21+
# Runs a single com,mand using the runners shell
22+
- name: Run a one-line script
23+
run: echo Hello, world!
24+
25+
# Runs a set of commands using the runners shell
26+
- name: Run a multi-line script
27+
run: |
28+
echo Add other actions to build,
29+
echo test, and deploy your project.

0 commit comments

Comments
 (0)