Giter Club home page Giter Club logo

ci-info-action's Introduction

ci-info-action

GitHub Actiions for ci-info. This is useful to decrease GitHub API call by caching ci-info result.

ci-info-action has two actions.

  • store: Run ci-info and save the result as an artifact
  • restore: Restore ci-info result from an artifact

โš ๏ธ This action doesn't install ci-info

store action depends on ci-info, so you have to install ci-info yourself. restore action depends on store action, but doesn't depend on ci-info.

Example

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

ci-info-action's People

Contributors

renovate[bot] avatar suzuki-shunsuke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.