diff --git a/.github/workflows/check-repro.yml b/.github/workflows/check-repro.yml index d53f3769..edf2a906 100644 --- a/.github/workflows/check-repro.yml +++ b/.github/workflows/check-repro.yml @@ -9,7 +9,7 @@ jobs: check-repro: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/expo-preview.yml b/.github/workflows/expo-preview.yml index 546e5d32..e536d675 100644 --- a/.github/workflows/expo-preview.yml +++ b/.github/workflows/expo-preview.yml @@ -45,7 +45,7 @@ jobs: run: echo "::set-output name=path::@react-navigation/react-navigation-example?release-channel=pr-${{ github.event.number }}" - name: Comment on PR - uses: actions/github-script@v2 + uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | diff --git a/.github/workflows/first-pull-request.yml b/.github/workflows/first-pull-request.yml index f6f27260..b5208a0e 100644 --- a/.github/workflows/first-pull-request.yml +++ b/.github/workflows/first-pull-request.yml @@ -16,17 +16,17 @@ jobs: ...context.issue, creator, state: 'all' - }) + }); - const issues = await github.paginate(opts) + const issues = await github.paginate(opts); for (const issue of issues) { if (issue.number === context.issue.number) { - continue + continue; } if (issue.pull_request) { - return // Creator is already a contributor. + return ;// Creator is already a contributor. } } @@ -42,4 +42,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, body: "Hey ${creator}! Thanks for opening the pull request. If you haven't already, make sure to read our [contribution guidelines](https://github.com/react-navigation/react-navigation/blob/main/CONTRIBUTING.md)." - }) + }); diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index e9170eca..c4beb64f 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'needs more info' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'needs repro' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'question' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -53,7 +53,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'feature-request' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -68,7 +68,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'library:react-native-screens' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -83,7 +83,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'library:react-native-reanimated' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -98,7 +98,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'library:react-native-gesture-handler' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -113,7 +113,7 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'library:react-native-safe-area-context' steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: |