Skip to content

Commit

Permalink
Update changeset checker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Mar 21, 2024
1 parent 725d43c commit d86ff68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: Download PR Number Artifact
- name: 📥 Download PR Number Artifact
uses: actions/[email protected]
with:
script: |
Expand All @@ -57,7 +57,7 @@ jobs:
const fs = require('fs');
fs.writeFileSync('${{github.workspace}}/pr-number.zip', Buffer.from(download.data));
- name: Extract PR Number Artifact
- name: 📦 Extract PR Number Artifact
run: unzip pr-number.zip

- name: 💬 Remove Existing Changeset Comment
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
COMMENT = `<h3>🦋 Changeset detected</h3><p><b>The changes in this PR will be included in the next version bump.</b></p><p>Not sure what this means? <a href="https://github.com/changesets/changesets/blob/master/docs/adding-a-changeset.md">Click here to learn what changesets are</a>.</p>`;
} else {
console.log("No changeset detected");
COMMENT = `<h3>⚠️ No Changeset found</h3>Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.</p><p><b>If these changes should result in a version bump, you need to add a changeset.</b></p><a href="https://github.com/changesets/changesets/blob/master/docs/adding-a-changeset.md">Click here to learn what changesets are, and how to add one</a>`;
COMMENT = `<h3>⚠️ No Changeset found</h3>Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.</p><p><b>If these changes should result in a version bump, you need to add a changeset.</b></p><p>Refer <a href="https://github.com/wso2/identity-apps/blob/master/docs/release/README.md">Release Documentation</a> to learn how to add a changeset.`;
}
await github.issues.createComment({
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/receive-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# This workflow will receive a PR and save the PR number for later use.

name: Receive PR
name: 📩 Receive PR

on:
pull_request:
Expand All @@ -30,16 +30,16 @@ jobs:
save-pr-information:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
- name: ⬇️ Checkout
uses: actions/checkout@v3

- name: Display PR Information
- name: ℹ️ Display PR Information
run: echo "PR Number \#${{github.event.number}}"

- name: Save PR Number for Later Use
- name: 💾 Save PR Number for Later Use
run: echo "${{github.event.number}}" > PR_NUMBER

- name: Upload PR Number as Artifact
- name: 📦 Upload PR Number as Artifact
uses: actions/upload-artifact@v3
with:
name: pr-number
Expand Down

0 comments on commit d86ff68

Please sign in to comment.