Skip to content

Commit 1a31fbf

Browse files
committed
Feature: Init GitHub actions
- Added build job; - Adjust push rule;
1 parent 5278949 commit 1a31fbf

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/main.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Main Ci/CD
2-
on: [push]
2+
on:
3+
push:
4+
branches-ignore:
5+
- master
6+
- develop
37
jobs:
48
tests:
59
runs-on: ubuntu-latest
@@ -30,4 +34,15 @@ jobs:
3034
with:
3135
target: src/build/php/Dockerfile
3236
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
build:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v3
43+
- name: Get changed files
44+
id: get_file_changes
45+
uses: trilom/[email protected]
46+
- name: Echo file changes
47+
run: |
48+
echo Changed files: ${{ steps.get_file_changes.outputs.files }}

0 commit comments

Comments
 (0)