Skip to content

Commit d680218

Browse files
authored
Merge branch 'develop' into dependabot/npm_and_yarn/action/json5-2.2.3
2 parents 7414e16 + 61eb9e6 commit d680218

File tree

9 files changed

+26890
-26868
lines changed

9 files changed

+26890
-26868
lines changed

.github/workflows/badges.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Use Node.js
1515
uses: actions/setup-node@main
1616
with:
17-
node-version: 16.x
17+
node-version: 20.x
1818
- run: |
1919
cd action
2020
npm install

.github/workflows/ci-pr.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Use Node.js
1111
uses: actions/setup-node@main
1212
with:
13-
node-version: 16.x
13+
node-version: 20.x
1414
- name: 'Build'
1515
run: |
1616
cd action
@@ -21,12 +21,16 @@ jobs:
2121
unit-tests:
2222
name: Run Unit Tests
2323
runs-on: ubuntu-latest
24+
# do not run from forks, as forks don’t have access to repository secrets
25+
if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
2426
steps:
27+
- name: Install docker-compose
28+
run: sudo apt-get update && sudo apt-get install -y docker-compose
2529
- uses: actions/checkout@master
2630
- name: Use Node.js
2731
uses: actions/setup-node@main
2832
with:
29-
node-version: 16.x
33+
node-version: 20.x
3034
- name: Install NPM Packages
3135
run: |
3236
cd action

.github/workflows/ci.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Test branch
2-
on: push
2+
on:
3+
- push
4+
- pull_request
35

46
jobs:
57
deploy-ssh-no-branch:
68
name: Test deploying to a new branch
79
runs-on: ubuntu-latest
10+
# do not run from forks, as forks don’t have access to repository secrets
11+
if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
812
steps:
913
- uses: actions/checkout@master
1014
- name: Setup Dummy Data
@@ -35,6 +39,8 @@ jobs:
3539
deploy-ssh-existing-branch:
3640
name: Test deploying to a pre-existing branch
3741
runs-on: ubuntu-latest
42+
# do not run from forks, as forks don’t have access to repository secrets
43+
if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
3844
steps:
3945
- uses: actions/checkout@master
4046
- name: Setup Dummy Data
@@ -52,6 +58,8 @@ jobs:
5258
deploy-ssh-existing-branch-known_hosts:
5359
name: Test deploying to a pre-existing branch (with KNOWN_HOSTS_FILE)
5460
runs-on: ubuntu-latest
61+
# do not run from forks, as forks don’t have access to repository secrets
62+
if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
5563
steps:
5664
- uses: actions/checkout@master
5765
- name: Setup Dummy Data
@@ -70,6 +78,8 @@ jobs:
7078
deploy-ssh-twice:
7179
name: Test deploying multiple times in one job
7280
runs-on: ubuntu-latest
81+
# do not run from forks, as forks don’t have access to repository secrets
82+
if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
7383
steps:
7484
- uses: actions/checkout@master
7585
- name: Setup Dummy Data
@@ -97,6 +107,8 @@ jobs:
97107
deploy-locally:
98108
name: Test deploying to another branch of same repo
99109
runs-on: ubuntu-latest
110+
# do not run from forks, as forks don’t have access to repository secrets
111+
if: github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
100112
steps:
101113
- uses: actions/checkout@master
102114
- name: Setup Dummy Data

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
- name: Use Node.js
119119
uses: actions/setup-node@main
120120
with:
121-
node-version: 16.x
121+
node-version: 20.x
122122
- name: npm install and build
123123
run: |
124124
npm install
@@ -155,7 +155,7 @@ jobs:
155155
- name: Use Node.js
156156
uses: actions/setup-node@main
157157
with:
158-
node-version: 16.x
158+
node-version: 20.x
159159
- name: npm install and build
160160
run: |
161161
npm install

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 'Push git subdirectory as branch'
33
description: 'Push a subdirectory as a branch to any git repo over SSH (or to the local repo)'
44
author: 'Sam Lanning <sam@samlanning.com>'
55
runs:
6-
using: 'node16'
6+
using: 'node20'
77
main: 'action/dist/index.js'
88
branding:
99
icon: 'upload-cloud'

0 commit comments

Comments
 (0)