Skip to content

Commit d3971e0

Browse files
authored
chore: skip test fork, add label (#5)
* chore: pre major release, add labeller * nl
1 parent 8e76278 commit d3971e0

3 files changed

Lines changed: 23 additions & 4 deletions

File tree

.github/workflows/label.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on: pull_request_target
2+
3+
jobs:
4+
apply-label:
5+
if: github.event.pull_request.head.repo.full_name != github.repository
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/github-script@v3
9+
with:
10+
github-token: ${{secrets.GITHUB_TOKEN}}
11+
script: |
12+
github.issues.addLabels({
13+
issue_number: context.issue.number,
14+
owner: context.repo.owner,
15+
repo: context.repo.repo,
16+
labels: ['Fork']
17+
})

.github/workflows/release-please.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ jobs:
6868
release-type: node
6969
fork: true
7070
package-name: ${{env.ACTION_NAME}}
71-
path: ${{env.ACTION_NAME}}
72-
monorepo-tags: ${{env.ACTION_NAME}}
71+
bump-minor-pre-major: true
7372
command: release-pr
7473
release-please-release:
7574
runs-on: ubuntu-latest
@@ -80,6 +79,5 @@ jobs:
8079
token: ${{ secrets.GITHUB_TOKEN }}
8180
release-type: node
8281
package-name: ${{env.ACTION_NAME}}
83-
path: ${{env.ACTION_NAME}}
84-
monorepo-tags: ${{env.ACTION_NAME}}
82+
bump-minor-pre-major: true
8583
command: github-release

.github/workflows/upload-cloud-storage-it.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
gcloud:
7+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
78
name: with setup-gcloud
89
runs-on: ubuntu-latest
910
steps:
@@ -32,6 +33,7 @@ jobs:
3233
run: echo '${{ steps.upload.outputs.uploaded }}'
3334

3435
b64_json:
36+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
3537
name: with base64 json creds
3638
runs-on: ubuntu-latest
3739
steps:
@@ -57,6 +59,7 @@ jobs:
5759
run: echo '${{ steps.upload.outputs.uploaded }}'
5860

5961
json:
62+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
6063
name: with json creds
6164
runs-on: ubuntu-latest
6265
steps:
@@ -82,6 +85,7 @@ jobs:
8285
run: echo '${{ steps.upload.outputs.uploaded }}'
8386

8487
mocha-it:
88+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
8589
name: mocha integration tests
8690
runs-on: ubuntu-latest
8791
steps:

0 commit comments

Comments
 (0)