Skip to content

Commit

Permalink
feat: add time comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thangbuiq committed Feb 14, 2024
1 parent ba2460e commit 43871a8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ jobs:
node-version: '18'

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: |
echo "before_time=$(date +%s)" >> $GITHUB_ENV
yarn install --frozen-lockfile
- name: Build Website
run: yarn build
run: |
yarn build
echo "after_time=$(date +%s)" >> $GITHUB_ENV
- name: Verify Build Output
run: |
Expand All @@ -50,12 +54,13 @@ jobs:
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
github-token: ${{ secrets.TOKEN_GITHUB }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Test server functionality passed ✅'
body: 'Test server functionality passed ✅ with total CI time: ' + (process.env.after_time - process.env.before_time) + ' seconds'
});
deploy-docusaurus:
Expand Down

0 comments on commit 43871a8

Please sign in to comment.