diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dce1535..0d43ebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,9 @@ jobs: if: steps.diff.outcome == 'failure' test: - needs: [ paths, package ] + needs: + - paths + - package # Save API rate limit if: >- failure() == false && cancelled() == false && @@ -74,7 +76,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - # Only latest because of API rate limit + # Only latest for saving API rate limit os: [ ubuntu-latest, macos-latest, windows-latest ] steps: - uses: actions/checkout@v3 @@ -86,7 +88,10 @@ jobs: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }} with: - status: ${{ matrix.os }} ${{ github.job }} ${{ github.run_id }} ${{ github.run_number }} ${{ github.ref }} ${{ github.sha }} + status: | + ${{ matrix.os }} + ${{ github.sha }} + ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - run: test -n "${ID}" env: ID: ${{ fromJSON(steps.tweet.outputs.response).id_str }} diff --git a/README.md b/README.md index ff6408e..8ea8b7e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ -

- snow-actions/tweet status -

- # Tweet action +[![CI](https://github.com/snow-actions/tweet/actions/workflows/ci.yml/badge.svg)](https://github.com/snow-actions/tweet/actions/workflows/ci.yml) + Tweet via GitHub Actions. ## Usage @@ -88,3 +86,18 @@ Response. |name|description| |---|---| |response|Response JSON| + +## Supported + +### Runners + +See [ci.yml](.github/workflows/ci.yml) + +- `ubuntu-*` +- `windows-*` +- `macos-*` +- `self-hosted` + +### Events + +- Any