Skip to content

bitrise-io/action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Bitrise GitHub Cache Action

This GitHub Action overrides the GitHub Actions cache URL to use the Bitrise cache backend on self-hosted runners. After adding this action to your workflow, the standard actions/cache will work seamlessly with Bitrise's cache infrastructure.

Prerequisites

  • Self-hosted GitHub Actions runner on Bitrise
  • ACTIONS_RESULTS_URL_OVERRIDE environment variable set by the Bitrise runner

Usage

Add this action to your workflow before any cache-related actions:

jobs:
  build:
    runs-on: self-hosted
    steps:
      - name: Setup Bitrise Cache
        uses: bitrise-io/action@v1

      - name: Checkout
        uses: actions/checkout@v4

      - name: Cache dependencies
        uses: actions/cache@v4
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

Inputs

Input Description Required Default
show_env Show environment variables for debugging No false

How It Works

  1. The Bitrise runner sets the ACTIONS_RESULTS_URL_OVERRIDE environment variable pointing to the Bitrise cache backend
  2. This action intercepts the cache configuration and updates ACTIONS_RESULTS_URL to use the Bitrise backend
  3. Subsequent actions/cache calls automatically use the Bitrise cache infrastructure

Debugging

To debug cache issues, enable environment variable logging:

- name: Setup Bitrise Cache
  uses: bitrise-io/action@v1
  with:
    show_env: 'true'

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published