Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizencc committed Jul 26, 2023
1 parent 0f62539 commit 3417680
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/commenter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Use the data

on:
workflow_dispatch:
workflow_run:
workflows: [Upload data]
types:
Expand All @@ -9,11 +10,11 @@ on:
jobs:
download:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_run'
outputs:
pr_number: ${{ steps.pr_output.outputs.pr_number }}
steps:
- name: 'Download artifact'
if: github.event_name == 'workflow_run'
uses: actions/github-script@v6
with:
script: |
Expand All @@ -35,9 +36,11 @@ jobs:
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr_number.zip`, Buffer.from(download.data));
- name: 'Unzip artifact'
if: github.event_name == 'workflow_run'
run: unzip pr_number.zip

- name: 'make env var'
if: github.event_name == 'workflow_run'
id: 'pr_output'
run: |
cat pr_number
Expand All @@ -49,4 +52,4 @@ jobs:
steps:
- env:
PR_NUMBER: ${{needs.download.outputs.pr_number}}
run: echo "PR_NUMBER"
run: echo "$PR_NUMBER"

0 comments on commit 3417680

Please sign in to comment.