Skip to content

Commit 0210bfe

Browse files
author
yash-1104github
committed
chore(ci): Update version of actions/checkout from v2 to v4 and added required permissions to release semantic version job
1 parent e361852 commit 0210bfe

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/build_and_release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/setup-node@v1
2525
with:
2626
node-version: '18.x'
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
2828
- run: |
2929
echo "::debug:: begin preparing...";
3030
echo "::debug:: branch to rlease: $GITHUB_REF_NAME"
@@ -81,7 +81,7 @@ jobs:
8181
if: |
8282
!contains(github.event.head_commit.message, 'skip-ci') && !contains(needs.prepare.outputs.NO_NEED_TO_BUILD, 'true')
8383
steps:
84-
- uses: actions/checkout@v2
84+
- uses: actions/checkout@v4
8585
- name: Use Node.js ${{ env.node-version }}
8686
uses: actions/setup-node@v1
8787
with:
@@ -121,9 +121,13 @@ jobs:
121121
!contains(github.event.head_commit.message, 'skip-ci') &&
122122
github.event_name == 'push' &&
123123
github.repository == ${{ github.env.repository }}
124+
permissions:
125+
contents: write
126+
issues: write
127+
pull-requests: write
124128
steps:
125129
- name: Check out repository code
126-
uses: actions/checkout@v2
130+
uses: actions/checkout@v4
127131
with:
128132
persist-credentials: false
129133
- name: Set up Node.js
@@ -146,7 +150,7 @@ jobs:
146150
github.event_name == 'push' &&
147151
github.repository == ${{ github.env.repository }}
148152
steps:
149-
- uses: actions/checkout@v2
153+
- uses: actions/checkout@v4
150154
- name: Download bundled client resources
151155
if: ${{ !env.ACT }}
152156
uses: actions/download-artifact@v4

.github/workflows/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/setup-node@v1
3333
with:
3434
node-version: '18.x'
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3636
with:
3737
# have to checkout master, to read releaserc, which means we must update the rc file in master with the newest settings
3838
ref: master
@@ -108,7 +108,7 @@ jobs:
108108
if: |
109109
!contains(github.event.head_commit.message, 'skip-ci')
110110
steps:
111-
- uses: actions/checkout@v2
111+
- uses: actions/checkout@v4
112112
with:
113113
ref: ${{ github.event.inputs.version }}
114114
- name: Use Node.js 18.x

.github/workflows/treetracker-frontend-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: |
2020
!contains(github.event.head_commit.message, 'skip-ci')
2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2323
- name: Use Node.js ${{ env.node-version }}
2424
uses: actions/setup-node@v1
2525
with:

0 commit comments

Comments
 (0)