diff --git a/.github/workflows/comment_on_workflow_run.yml b/.github/workflows/comment_on_workflow_run.yml deleted file mode 100644 index 7c4eb40..0000000 --- a/.github/workflows/comment_on_workflow_run.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Comment on Workflow Run - -on: - workflow_run: - workflows: - - "Test" - types: - - completed - -jobs: - comment: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.event == 'pull_request' }} - steps: - - uses: actions/checkout@v3 - - name: on artifact - id: artifact - uses: marocchino/on_artifact@v1 - with: - name: all - - uses: ./ - with: - header: All - number: ${{ steps.artifact.outputs.number }} - message: | -
- output of yarn all - - ``` - ${{ steps.artifact.outputs.all_result }} - ``` -
- - uses: ./ - with: - header: All - number: ${{ steps.artifact.outputs.number }} - append: true - hide_details: true - message: | - The build is over. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 69642c7..23f8431 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,9 +15,26 @@ jobs: set -o pipefail mkdir -p ./pr echo ${{ github.event.number }} | tee ./pr/number - yarn all |& tee ./pr/all_result - - uses: actions/upload-artifact@v3 - if: ${{ github.event_name == 'pull_request' && (success() || failure()) }} + EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) + echo "all_result<<$EOF" >> "$GITHUB_ENV" + yarn all >> "$GITHUB_ENV" + echo "$EOF" >> "$GITHUB_ENV" + id: all + - uses: ./ with: - name: all - path: pr/ + header: All + message: | +
+ output of yarn all + + ``` + ${{ env.all_result }} + ``` +
+ - uses: ./ + with: + header: All + append: true + hide_details: true + message: | + The build is over.