Skip to content

Commit f24fdee

Browse files
authored
Merge pull request #4 from LambdaTest/stage
fix CI
2 parents 8657842 + 91410d5 commit f24fdee

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v1
1818

19-
- name: Extract commit ID and repository information
20-
run: |
21-
COMMIT_ID=$GITHUB_SHA
22-
REPO_INFO=$GITHUB_REPOSITORY
23-
echo "REPO_INFO: $REPO_INFO"
24-
OWNER=$(echo $REPO_INFO | cut -d'/' -f1)
25-
REPO=$(echo $REPO_INFO | cut -d'/' -f2)
26-
echo "Commit ID: $COMMIT_ID"
27-
echo "Repository: $REPO"
28-
echo "Owner: $OWNER"
29-
3019
- name: Create commit status
3120
run: |
3221
API_HOST=https://api.github.com
@@ -39,19 +28,11 @@ jobs:
3928
echo "Last commit ID of PR: $COMMIT_ID"
4029
REF=$GITHUB_SHA
4130
echo "Current Commit ID REF : $REF"
42-
STATUS_URL=$API_HOST/repos/$OWNER/$REPO/statuses/$COMMIT_ID
31+
STATUS_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID
4332
echo "STATUS_URL: $STATUS_URL"
4433
echo "GITHUB_URL=$STATUS_URL" >> $GITHUB_ENV
45-
curl -X POST $STATUS_URL \
46-
-H "Authorization: Bearer $GITHUB_TOKEN" \
47-
-H "Content-Type: application/json" \
48-
-d '{
49-
"state": "success",
50-
"description": "The build was successful.",
51-
"context": "ci/smartui-github-testing"
52-
}'
5334
54-
- name: Install Dependecies
35+
- name: Install Dependencies
5536
run: npm install
5637

5738
- name: Execute Test

0 commit comments

Comments
 (0)