We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf939a4 commit 30d3403Copy full SHA for 30d3403
1 file changed
.github/workflows/compile-src.yml
@@ -2,19 +2,26 @@ name: SWG Source - Continuous Integration for src repo
2
3
on:
4
pull_request:
5
- branches: [ master ]
6
-
7
- workflow_dispatch:
8
+ types:
+ - opened
+ - sychronize
+
9
jobs:
10
compile-src:
11
runs-on: ubuntu-latest
12
container: cekisswg/swg-vm3.01-i386:latest
13
steps:
14
- - name: Run ANT Build
+ - name: Clone repository
15
run: |
16
cd /home/swg/swg-main
17
- git clone https://github.com/SWG-Source/src.git
18
- cd src
+ git clone --depth 1 --branch ${{ github.event.pull_request.base.ref }} ${{ github.repository }} pull-request
19
+ - name: Checkout pull request branch
20
+ run: git -C pull-request checkout ${{ github.event.pull_request.head.ref }}
21
22
+ - name: Run ANT Build
23
+ run: |
24
+ cd /home/swg/swg-main/src
25
ant build_src
26
27
0 commit comments