Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d328d1

Browse files
committed
ci: Update Github actions
1 parent e45f70b commit 7d328d1

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/githubIssues.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
const searchForExistingGithubIssue = async ( { keywords, github, context } ) => {
33
const query = keywords.concat( [ 'in:title', `repo:${context.repo.owner}/${context.repo.repo}`, 'type:issue' ] ).join( '+' );
4-
const searchResponse = await github.search.issuesAndPullRequests( {
4+
const searchResponse = await github.rest.search.issuesAndPullRequests( {
55
q: query,
66
} );
77
return searchResponse.data;
@@ -16,7 +16,7 @@ const createNewGithubIssue = async ( { title, body, github, context } ) => {
1616
body
1717
};
1818

19-
const issueResponse = await github.issues.create( newIssue );
19+
const issueResponse = await github.rest.issues.create( newIssue );
2020
return issueResponse.data;
2121
};
2222

.github/qNetworkReplyErrorCodes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const qNetworkReplyErrorCodesFileName = 'QNetworkReplyErrorCodes.txt';
66
const qNetworkReplyErrorCodesFilePath = path.join( __dirname, qNetworkReplyErrorCodesFileName );
77

88
const fetchQNetworkReplyErrorCodeListFromGitHub = async ( github ) => {
9-
const getContent = github.repos.getContent || github.repos.getContents;
9+
const getContent = github.rest.repos.getContent || github.rest.repos.getContents;
1010
const response = await getContent( {
1111
owner: 'qt',
1212
repo: 'qtbase',

.github/workflows/checkForCodeUpdates.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313
- uses: actions/checkout@v3
1414
with:
1515
ref: develop
16-
- uses: actions/setup-node@v1
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 16
1719
- run: npm install
18-
- uses: actions/github-script@v4
20+
- uses: actions/github-script@v6
1921
with:
2022
script: |
2123
const path = require( 'path' );
@@ -28,9 +30,11 @@ jobs:
2830
- uses: actions/checkout@v3
2931
with:
3032
ref: develop
31-
- uses: actions/setup-node@v1
33+
- uses: actions/setup-node@v3
34+
with:
35+
node-version: 16
3236
- run: npm install
33-
- uses: actions/github-script@v4
37+
- uses: actions/github-script@v6
3438
with:
3539
script: |
3640
const path = require( 'path' );

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Build & Test
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111
- name: Build and run tests
1212
run: >
1313
docker run --rm

0 commit comments

Comments
 (0)