Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc #214

Merged
merged 6 commits into from Aug 11, 2022
Merged

Misc #214

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -66,15 +66,17 @@ jobs:
if: steps.diff.outcome == 'failure'

test:
needs: [ paths, package ]
needs:
- paths
- package # Save API rate limit
if: >-
failure() == false &&
cancelled() == false &&
needs.paths.outputs.package == 'true'
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
Expand All @@ -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 }}
Expand Down
21 changes: 17 additions & 4 deletions README.md
@@ -1,9 +1,7 @@
<p align="center">
<a href="https://github.com/snow-actions/tweet/actions"><img alt="snow-actions/tweet status" src="https://github.com/snow-actions/tweet/workflows/build-test/badge.svg"></a>
</p>

# 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
Expand Down Expand Up @@ -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