diff --git a/.github/workflows/check-repro.yml b/.github/workflows/check-repro.yml index f0dc2b60ea..b8441de54a 100644 --- a/.github/workflows/check-repro.yml +++ b/.github/workflows/check-repro.yml @@ -10,7 +10,7 @@ jobs: if: ${{ github.event.label.name == 'bug' }} runs-on: ubuntu-latest steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -23,14 +23,14 @@ jobs: 'gm' ); if (regex.test(body)) { - await github.issues.addLabels({ + await github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, labels: ['repro provided'], }); try { - await github.issues.removeLabel({ + await github.rest.issues.removeLabel({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, @@ -46,7 +46,7 @@ jobs: return; } const body = "Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a [snack.expo.dev](https://snack.expo.dev) link or link to a GitHub repo under your username).\n\nCan you provide a [minimal repro](https://stackoverflow.com/help/minimal-reproducible-example) which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup."; - const comments = await github.issues.listComments({ + const comments = await github.rest.issues.listComments({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, @@ -54,13 +54,13 @@ jobs: if (comments.data.some(comment => comment.body === body)) { return; } - await github.issues.createComment({ + await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body, }); - await github.issues.addLabels({ + await github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, diff --git a/.github/workflows/publish-each-pr.yml b/.github/workflows/publish-each-pr.yml index 72eff835db..56b2b16b7f 100644 --- a/.github/workflows/publish-each-pr.yml +++ b/.github/workflows/publish-each-pr.yml @@ -46,7 +46,7 @@ jobs: run: echo "EXPO_CONFIG=$(npx expo config --json)" >> $GITHUB_OUTPUT - name: Comment on PR - uses: actions/github-script@v3 + uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -62,7 +62,7 @@ jobs: `; - const comments = await github.issues.listComments({ + const comments = await github.rest.issues.listComments({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, @@ -72,7 +72,7 @@ jobs: return; } - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml index e29c76cd59..f936f98248 100644 --- a/.github/workflows/semantic-pr.yml +++ b/.github/workflows/semantic-pr.yml @@ -1,4 +1,4 @@ -name: "Semantic Pull Request" +name: Semantic Pull Request on: [pull_request] jobs: @@ -10,4 +10,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - validateSingleCommit: true \ No newline at end of file + validateSingleCommit: true diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 33ebabc6f4..a7a1d98fd4 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -8,7 +8,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 30 diff --git a/.github/workflows/updates.yml b/.github/workflows/updates.yml index 138eb2aa7d..f190d5a243 100644 --- a/.github/workflows/updates.yml +++ b/.github/workflows/updates.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 16.x @@ -28,7 +28,7 @@ jobs: id: yarn-cache-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}