Skip to content

Commit

Permalink
chore: remove warning (#197)
Browse files Browse the repository at this point in the history
* fix: remove warning

* chore: update
  • Loading branch information
xrkffgg authored Nov 1, 2024
1 parent f3eb0a0 commit 26a4993
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Preview Build

on:
on:
pull_request:
types: [opened, synchronize, reopened]

Expand All @@ -22,7 +22,7 @@ jobs:
zip -r dist.zip docs-dist
- name: upload dist artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dist
path: dist.zip
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Upload PR number
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pr
path: ./pr-id.txt
8 changes: 4 additions & 4 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr
Expand All @@ -22,7 +22,7 @@ jobs:
run: echo "::set-output name=id::$(<pr-id.txt)"

- name: download dist artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
Expand All @@ -43,7 +43,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
🎊 PR Preview has been successfully built and deployed to https://issues-helper-preview-pr-${{ steps.pr.outputs.id }}.surge.sh
<img width="300" src="https://user-images.githubusercontent.com/507615/90250366-88233900-de6e-11ea-95a5-84f0762ffd39.png">
<!-- Sticky Pull Request Comment -->
Expand All @@ -69,7 +69,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr
Expand Down
2 changes: 0 additions & 2 deletions src/helper/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ export class IssueHelperEngine implements IIssueHelperEngine {
const issueNumber = core.getInput('issue-number') || defaultCtxNumber;
if (issueNumber) {
this.issueNumber = +issueNumber;
} else {
core.warning(`'issue-number' is missing or this action not needed yet!`);
}

this.emoji = core.getInput('emoji') || '';
Expand Down

0 comments on commit 26a4993

Please sign in to comment.