https://github.com/suzuki-shunsuke/ci-info-action
GitHub Actiions for ci-info
https://github.com/suzuki-shunsuke/ci-info-action
Last synced: about 1 month ago
JSON representation
GitHub Actiions for ci-info
- Host: GitHub
- URL: https://github.com/suzuki-shunsuke/ci-info-action
- Owner: suzuki-shunsuke
- License: mit
- Created: 2022-08-11T02:06:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T01:55:32.000Z (about 1 year ago)
- Last Synced: 2024-04-14T16:06:57.153Z (about 1 year ago)
- Size: 119 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ci-info-action
GitHub Actiions for [ci-info](https://github.com/suzuki-shunsuke/ci-info).
This is useful to decrease GitHub API call by caching ci-info result.ci-info-action has two actions.
* [store](store): Run ci-info and save the result as an artifact
* [restore](restore): Restore ci-info result from an artifact## :warning: This action doesn't install ci-info
`store` action depends on ci-info, so you have to [install ci-info yourself](https://github.com/suzuki-shunsuke/ci-info#install).
`restore` action depends on `store` action, but doesn't depend on ci-info.## Example
```yaml
jobs:
ci-info:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3# Install ci-info with aqua
- uses: aquaproj/[email protected]
with:
aqua_version: v1.19.1# Run ci-info and store the result as an artifact
- uses: suzuki-shunsuke/ci-info-action/store@main# Refer ci-info result
- run: echo "$CI_INFO_PR_NUMBER"test:
needs: ci-info
strategy:
matrix:
env:
- runs-on: windows-latest
- runs-on: ubuntu-latest
runs-on: ${{ matrix.env.runs-on }}
steps:
- uses: actions/checkout@v3# Restore ci-info result from an artifact
- uses: suzuki-shunsuke/ci-info-action/restore@main# Refer ci-info result
- run: echo "$CI_INFO_PR_NUMBER"
```## LICENSE
[MIT](LICENSE)