From 73bbb42d8bcfe9c12142e37278219dd616faa3fc Mon Sep 17 00:00:00 2001 From: SnowCait Date: Fri, 12 Aug 2022 08:18:53 +0900 Subject: [PATCH 1/6] Description for saving API rate limit --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dce1535..649f4a4 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 From 3f3662846496c3a5bb56d8e16fe31efac9985008 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Fri, 12 Aug 2022 08:21:44 +0900 Subject: [PATCH 2/6] Change twet text --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 649f4a4..130b4e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,7 @@ 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 }}\n${{ github.sha }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - run: test -n "${ID}" env: ID: ${{ fromJSON(steps.tweet.outputs.response).id_str }} From 8956fe3771b956cbea25c93b93e95425bd862ca0 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Fri, 12 Aug 2022 08:30:44 +0900 Subject: [PATCH 3/6] Status badge --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ff6408e..0ec93ac 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 From 28bbfb5b6c383949505fc5ba31d50d55b032e029 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Fri, 12 Aug 2022 08:36:57 +0900 Subject: [PATCH 4/6] Fix tweet text --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 130b4e7..0d43ebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,10 @@ jobs: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }} with: - status: ${{ matrix.os }}\n${{ github.sha }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + 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 }} From cce4c86fd53ff70753020604145b74ab44edbfe7 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Fri, 12 Aug 2022 08:39:56 +0900 Subject: [PATCH 5/6] Supported runners and events --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 0ec93ac..2bb2f84 100644 --- a/README.md +++ b/README.md @@ -86,3 +86,16 @@ Response. |name|description| |---|---| |response|Response JSON| + +## Supported + +### Runners + +- `ubuntu-*` +- `windows-*` +- `macos-*` +- `self-hosted` + +### Events + +- Any From 48ad3e717ef42046bdc078a0d8b3c67802dbe729 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Fri, 12 Aug 2022 08:41:57 +0900 Subject: [PATCH 6/6] Supported runners --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2bb2f84..8ea8b7e 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,8 @@ Response. ### Runners +See [ci.yml](.github/workflows/ci.yml) + - `ubuntu-*` - `windows-*` - `macos-*`