Skip to content

Commit d826713

Browse files
committed
fix
fix fix update workflows. Delete old 'test' and commit only on commit to main
1 parent a4f4996 commit d826713

File tree

2 files changed

+5
-82
lines changed

2 files changed

+5
-82
lines changed

.github/workflows/buildcommit.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: build and commit
1+
name: build test and commit
22

33
on:
44
push:
55
branches: [ master, dev ]
66

7-
workflow_dispatch:
7+
pull_request:
8+
branches: [ master ]
89

910
jobs:
1011

@@ -90,6 +91,7 @@ jobs:
9091
commit-artifacts:
9192
runs-on: ubuntu-latest
9293
needs: [build-linux-gnu, build-windows]
94+
if: ${{ github.event_name == 'push' }}
9395
steps:
9496
- uses: actions/checkout@v2
9597
- uses: actions/download-artifact@v2
@@ -102,4 +104,4 @@ jobs:
102104
git config --global user.email 'automation-tool@users.noreply.github.com'
103105
git add lib/*.a lib/*.lib
104106
git diff-index --quiet HEAD || git commit -m "Automated build"
105-
107+
git push

.github/workflows/test.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)