chore: remove warning (#197)

* fix: remove warning

* chore: update
This commit is contained in:
xrkffgg
2024-11-01 17:17:17 +08:00
committed by GitHub
parent f3eb0a0a96
commit 26a4993608
3 changed files with 7 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ jobs:
zip -r dist.zip docs-dist zip -r dist.zip docs-dist
- name: upload dist artifact - name: upload dist artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: dist name: dist
path: dist.zip path: dist.zip
@@ -34,7 +34,7 @@ jobs:
- name: Upload PR number - name: Upload PR number
if: ${{ always() }} if: ${{ always() }}
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: pr name: pr
path: ./pr-id.txt path: ./pr-id.txt

View File

@@ -12,7 +12,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps: steps:
- name: download pr artifact - name: download pr artifact
uses: dawidd6/action-download-artifact@v2 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr name: pr
@@ -22,7 +22,7 @@ jobs:
run: echo "::set-output name=id::$(<pr-id.txt)" run: echo "::set-output name=id::$(<pr-id.txt)"
- name: download dist artifact - name: download dist artifact
uses: dawidd6/action-download-artifact@v2 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success workflow_conclusion: success
@@ -69,7 +69,7 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
steps: steps:
- name: download pr artifact - name: download pr artifact
uses: dawidd6/action-download-artifact@v2 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr name: pr

View File

@@ -80,8 +80,6 @@ export class IssueHelperEngine implements IIssueHelperEngine {
const issueNumber = core.getInput('issue-number') || defaultCtxNumber; const issueNumber = core.getInput('issue-number') || defaultCtxNumber;
if (issueNumber) { if (issueNumber) {
this.issueNumber = +issueNumber; this.issueNumber = +issueNumber;
} else {
core.warning(`'issue-number' is missing or this action not needed yet!`);
} }
this.emoji = core.getInput('emoji') || ''; this.emoji = core.getInput('emoji') || '';