summaryrefslogtreecommitdiffhomepage
path: root/.github/actions/go-cache/action.yml
blob: 7f5a66de17d0fd87c7945f47234fc81f8b89cddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: go-cache
description: Set up build to use cigocacher

inputs:
  cigocached-url:
    description: URL of the cigocached server
    required: true
  cigocached-host:
    description: Host to dial for the cigocached server
    required: true
  checkout-path:
    description: Path to cloned repository
    required: true
  cache-dir:
    description: Directory to use for caching
    required: true

outputs:
  success:
    description: Whether cigocacher was set up successfully
    value: ${{ steps.setup.outputs.success }}

runs:
  using: composite
  steps:
    - name: Setup cigocacher
      id: setup
      shell: bash
      env:
        URL: ${{ inputs.cigocached-url }}
        HOST: ${{ inputs.cigocached-host }}
        CACHE_DIR: ${{ inputs.cache-dir }}
      working-directory: ${{ inputs.checkout-path }}
      # https://github.com/orgs/community/discussions/25910
      run: $GITHUB_ACTION_PATH/action.sh