Skip to content

Commit fb9055c

Browse files
authored
Update CI (#181)
* exclude dependabot pushes * add workflow_dispatch * update actions/upload-artifact to v3 * update actions/download-artifact to v3 * limit deploys to our repo
1 parent 3c85776 commit fb9055c

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches-ignore:
6+
- "dependabot/**"
7+
pull_request:
8+
workflow_dispatch:
49

510
env:
611
FORCE_COLOR: 2
@@ -18,7 +23,7 @@ jobs:
1823
- name: Set up Node.js
1924
uses: actions/setup-node@v3
2025
with:
21-
node-version: "${{ env.NODE }}"
26+
node-version: ${{ env.NODE }}
2227
cache: npm
2328

2429
- name: Set up Ruby
@@ -40,8 +45,8 @@ jobs:
4045
run: npm test
4146

4247
- name: Upload docs
43-
uses: actions/upload-artifact@v2
44-
if: success() && startsWith(github.ref, 'refs/tags/')
48+
uses: actions/upload-artifact@v3
49+
if: github.repository == 'mdo/github-buttons' && startsWith(github.ref, 'refs/tags/')
4550
with:
4651
name: docs
4752
path: ./_site/
@@ -50,13 +55,13 @@ jobs:
5055
deploy:
5156
runs-on: ubuntu-latest
5257
needs: test
53-
if: startsWith(github.ref, 'refs/tags/')
58+
if: github.repository == 'mdo/github-buttons' && startsWith(github.ref, 'refs/tags/')
5459

5560
steps:
5661
- uses: actions/checkout@v3
5762

5863
- name: Download docs
59-
uses: actions/download-artifact@v2
64+
uses: actions/download-artifact@v3
6065
with:
6166
name: docs
6267
path: ./_site/

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- master
1111
schedule:
1212
- cron: "0 0 * * 0"
13+
workflow_dispatch:
1314

1415
jobs:
1516
analyze:

0 commit comments

Comments
 (0)