Skip to content

Commit d66e661

Browse files
committed
Restrict release Github Action workflow to master branch.
Prevent PRs from becoming releases. [Build] Signed-off-by: Markus Alexander Kuppe <[email protected]>
1 parent 3923f46 commit d66e661

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: CI
33
on:
44
repository_dispatch:
55
push:
6+
branches:
7+
- 'master'
68
paths-ignore:
79
- README.md
810

.github/workflows/pr.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: PR
2+
3+
on:
4+
[pull_request]
5+
6+
jobs:
7+
build:
8+
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Get current date
14+
id: date
15+
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M')"
16+
- name: Build with Ant
17+
run: ant -noinput -buildfile build.xml -Dtimestamp=${{steps.date.outputs.date}}

0 commit comments

Comments
 (0)