diff --git a/.github/workflows/complain.yml b/.github/workflows/complain.yml index ef9100c9..0a94a2fd 100644 --- a/.github/workflows/complain.yml +++ b/.github/workflows/complain.yml @@ -17,17 +17,6 @@ jobs: complain: runs-on: ubuntu-latest steps: - - uses: martialonline/workflow-status@v3 - id: status - - - uses: rtCamp/action-slack-notify@v2 - if: ${{ env.SLACK_WEBHOOK != '' }} - env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} - SLACK_MESSAGE: new-version:${{ inputs.projects }} (${{ inputs.platform }}) ${{ steps.status.outputs.status }} - SLACK_COLOR: ${{ steps.status.outputs.status }} - - uses: actions/checkout@v3 if: github.ref_name == 'main' @@ -39,3 +28,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PACKAGE: ${{ inputs.projects }} (${{ inputs.platform }}) URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + + - uses: martialonline/workflow-status@v3 + id: status + + - uses: rtCamp/action-slack-notify@v2 + if: ${{ env.SLACK_WEBHOOK != '' }} + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} + SLACK_MESSAGE: new-version:${{ inputs.projects }} (${{ inputs.platform }}) ${{ steps.status.outputs.status }} + SLACK_COLOR: ${{ steps.status.outputs.status }}