ff0c7f20a7
CI / install dependencies (pull_request) Failing after 9s
CI / build check (pull_request) Has been skipped
CI / check format (pull_request) Has been skipped
CI / check lint (pull_request) Has been skipped
CI / test (pull_request) Has been skipped
CI / image check (pull_request) Has been skipped
36 lines
993 B
YAML
36 lines
993 B
YAML
name: Run Go Script
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
script:
|
|
description: The script to run
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
run-script:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Setup go
|
|
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version-file: go.mod
|
|
check-latest: true
|
|
- name: Create cache key
|
|
uses: ./.gitea/actions/go-cache-key
|
|
- name: Install dependencies from Cache
|
|
id: cache-go
|
|
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
|
with:
|
|
path: |
|
|
/go_path
|
|
/go_cache
|
|
key: go_path-${{ steps.hash-go.outputs.hash }}
|
|
restore-keys: |-
|
|
go_cache-${{ steps.hash-go.outputs.hash }}
|
|
- name: Run script
|
|
run: make ${{ inputs.script }}
|