Skip to content

Commit 4a65ab7

Browse files
himanshujaindevHimanshu Jain
andauthored
update workflow (#5)
* update workflow * update workflow * update workflow * update workflow * update workflow * update workflow * update workflow * update workflow --------- Co-authored-by: Himanshu Jain <[email protected]>
1 parent 45ca058 commit 4a65ab7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
1414
- name: Set up Node.js
15-
uses: actions/setup-node@v2
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: '21.6.1'
1818
- name: Check node.js version

.github/workflows/pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Runs when PR is created, updated, or reopened
22

33
name: Deploy to Firebase Hosting on PR
4-
'on': pull_request
4+
on: pull_request
55
jobs:
66
build_and_preview:
77
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout repository
1111
uses: actions/checkout@v4
1212
- name: Set up Node.js
13-
uses: actions/setup-node@v2
13+
uses: actions/setup-node@v4
1414
with:
1515
node-version: '21.6.1'
1616
- name: Check node.js version
@@ -46,4 +46,4 @@ jobs:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
run: |
4848
COMMENT="Oops! The build failed."
49-
curl -sSL -H "Authorization: token $GITHUB_TOKEN" -d "{\"body\": \"$COMMENT\"}" -H "Content-Type: application/json" -X POST "https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/${{ github.event.pull_request.number }}/comments"
49+
curl -sSL -H "Authorization: token $GITHUB_TOKEN" -d "{\"body\": \"$COMMENT\"}" -H "Content-Type: application/json" -X POST "https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/${{ github.event.pull_request.number }}/comments"

0 commit comments

Comments
 (0)