Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/auto-integration-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

- name: Get integration app token
id: integration_token
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
global["fetch"] = fetch
Expand All @@ -80,7 +80,7 @@ jobs:
core.setOutput('app_token', token)

- name: Integration config
uses: actions/github-script@v6
uses: actions/github-script@v7
id: integration-config
# workflow_dispatch event used for manual trigger workflow
if: startsWith(github.event.comment.body, '/integrate') || github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
delete-branch: true

- name: Link integration pr
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const BOT_NAME = "AutoIntegrationPr Bot"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
echo "EXISTS=$(if [ $(git tag -l ${{ steps.get-tag.outputs.TAG }}) ]; then echo yes; else echo no; fi)" >> $GITHUB_OUTPUT

- name: create comment
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
script: |
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
- name: Get token using github-script
id: get-token
if: github.event.pull_request.merged
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
global["fetch"] = fetch
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:

- name: Create tag
if: github.event.pull_request.merged
uses: actions/github-script@v5
uses: actions/github-script@v7
with:
github-token: ${{ steps.get-token.outputs.app_token }}
script: |
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/chatOps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
# assign to someone
- name: assign
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/assign')
env:
COMMENT_BODY: ${{ github.event.comment.body }}
Expand All @@ -29,7 +29,7 @@ jobs:
})
# request someone to review
- name: review
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/review')
env:
COMMENT_BODY: ${{ github.event.comment.body }}
Expand All @@ -52,7 +52,7 @@ jobs:
});
# !deprecated add approve label
- name: "approve"
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/+1')
with:
script: |
Expand All @@ -74,7 +74,7 @@ jobs:

# retrigger checks
- name: check
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/check')
env:
COMMENT_BODY: ${{ github.event.comment.body }}
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
startsWith(github.event.comment.body, '/merge') || startsWith(github.event.comment.body, '/check') ||
startsWith(github.event.comment.body, '/forcemerge')
id: get-token
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
global["fetch"] = fetch
Expand All @@ -146,7 +146,7 @@ jobs:

# retrigger obs build webhook
- name: check obs
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/check')
id: check-obs
env:
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
}

- name: check obs comment
uses: actions/github-script@v6
uses: actions/github-script@v7
if: |
startsWith(github.event.comment.body, '/check obs') && steps.check-obs.outputs.retriggered == 'true'
with:
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
}

- name: disable merge
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/merge') && github.repository_owner != 'linuxdeepin'
with:
github-token: ${{ steps.get-token.outputs.app_token }}
Expand All @@ -297,7 +297,7 @@ jobs:
})

- name: merge
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/merge') && github.repository_owner == 'linuxdeepin'
with:
github-token: ${{ steps.get-token.outputs.app_token }}
Expand Down Expand Up @@ -343,7 +343,7 @@ jobs:
});

- name: forcemerge
uses: actions/github-script@v6
uses: actions/github-script@v7
if: startsWith(github.event.comment.body, '/forcemerge') && github.repository_owner == 'linuxdeepin'
with:
github-token: ${{ steps.get-token.outputs.app_token }}
Expand Down Expand Up @@ -395,7 +395,7 @@ jobs:
- name: Get integration app token
id: pr
if: startsWith(github.event.comment.body, '/integrate')
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const response = await github.rest.pulls.get({
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/transfer-issues-func.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
npm install @octokit/auth-app@6.1.1
- name: Get token using github-script
id: get-token
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
global["fetch"] = fetch
Expand All @@ -47,7 +47,7 @@ jobs:
});
core.setOutput('app_token', token)
- name: transfer issues
uses: actions/github-script@v5
uses: actions/github-script@v7
with:
github-token: ${{ steps.get-token.outputs.app_token }}
script: |
Expand Down
Loading