Skip to content

Commit

Permalink
update workflows (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapiderman authored Jul 2, 2023
1 parent b734b28 commit 9febe8b
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/auto-pr-schemastore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
env:
USERNAME: ${{ github.actor }}
EMAIL: ${{ github.actor}}@users.noreply.github.com

permissions:
issues: read
pull-requests: read

jobs:
create-auto-PR:
Expand Down Expand Up @@ -70,6 +74,9 @@ jobs:

- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
env:
PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
PR_URL: ${{ steps.cpr.outputs.pull-request-url }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
echo "Pull Request Number - $PR_NUMBER"
echo "Pull Request URL - $PR_URL"
4 changes: 4 additions & 0 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
release:
types: [created]

permissions:
issues: read
pull-requests: read

jobs:
docker:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker-release-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
required: true
type: string

permissions:
issues: read
pull-requests: read

jobs:
testing:
name: Testing Release
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ env:
ALGOLIA_ADMIN_API_KEY: undefined
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: undefined

permissions:
issues: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ env:
ALGOLIA_ADMIN_API_KEY: ${{secrets.ALGOLIA_ADMIN_API_KEY}}
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: ${{secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY}}

permissions:
issues: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
schedule:
- cron: "0 7 * * *" # every day at 12AM PST

permissions:
issues: read
pull-requests: read

jobs:
nightly:
name: 🌒 Nightly Release
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
branches:
- main

permissions:
issues: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
release:
types: [created]

permissions:
issues: read
pull-requests: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/package-notification-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
release:
types: [created]

permissions:
issues: read
pull-requests: read

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
release:
types: [published]

permissions:
issues: read
pull-requests: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sonar-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
types: [opened, reopened]
workflow_dispatch: # allow manual trigger for scans

permissions:
issues: read
pull-requests: read

jobs:
sonarcloud:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/upload-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
release:
types: [published]

permissions:
issues: read
pull-requests: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9febe8b

Please sign in to comment.