From 7e15f7191631a2f50fabae940a8affe808793aca Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Tue, 24 Oct 2023 14:02:06 +0900 Subject: ci: fix pullreq number may not get correctly (#12127) * Revert "remove save-pr-number" This reverts commit 085f4bd76992fa0b3e4219a5c132b72f68c3d2cc. * Revert "Update report-api-diff.yml" This reverts commit b73daf4c0ec4240ea39b183a6b93f209b63e6d81. * Revert "Update report-api-diff.yml" This reverts commit cbf2b5ad8a7cba769446fa9bcf1f129c6f03db8c. * Revert "try to get pull request id from github.event.workflow_run.pull_requests" This reverts commit 07517ce501c12e75da03d325c23968d75ac37d00. --- .github/workflows/get-api-diff.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.github/workflows/get-api-diff.yml') diff --git a/.github/workflows/get-api-diff.yml b/.github/workflows/get-api-diff.yml index 6454de080c..eeb2fa0855 100644 --- a/.github/workflows/get-api-diff.yml +++ b/.github/workflows/get-api-diff.yml @@ -171,3 +171,16 @@ jobs: path: api-head.json - name: Kill Misskey Job run: screen -S misskey -X quit + + save-pr-number: + runs-on: ubuntu-latest + steps: + - name: Save PR number + env: + PR_NUMBER: ${{ github.event.number }} + run: | + echo "$PR_NUMBER" > ./pr_number + - uses: actions/upload-artifact@v3 + with: + name: api-artifact + path: pr_number -- cgit v1.2.3-freya