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.
- Self-hosted GitHub Actions runner on Bitrise
ACTIONS_RESULTS_URL_OVERRIDEenvironment variable set by the Bitrise runner
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') }}| Input | Description | Required | Default |
|---|---|---|---|
show_env |
Show environment variables for debugging | No | false |
- The Bitrise runner sets the
ACTIONS_RESULTS_URL_OVERRIDEenvironment variable pointing to the Bitrise cache backend - This action intercepts the cache configuration and updates
ACTIONS_RESULTS_URLto use the Bitrise backend - Subsequent
actions/cachecalls automatically use the Bitrise cache infrastructure
To debug cache issues, enable environment variable logging:
- name: Setup Bitrise Cache
uses: bitrise-io/action@v1
with:
show_env: 'true'MIT