Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Use Reusable GH action #33

Use Reusable GH action

Use Reusable GH action #33

Workflow file for this run

name: GB3 Search API
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
python:
name: Python
uses: ./.github/workflows/python-tests.yml

Check failure on line 16 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / GB3 Search API

Invalid workflow file

The workflow is not valid. In .github/workflows/main.yml (Line: 16, Col: 11): Error from called workflow gisktzh/gb3-search_api/.github/workflows/python-tests.yml@9cdd644d7655ae9a86010ad6651d5227ddd6a79b (Line: 8, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CACHE_KEY In .github/workflows/main.yml (Line: 16, Col: 11): Error from called workflow gisktzh/gb3-search_api/.github/workflows/python-tests.yml@9cdd644d7655ae9a86010ad6651d5227ddd6a79b (Line: 8, Col: 18): Unexpected value '${{ env.CACHE_KEY }}'
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gisktzh/github-actions/docker-dry-run@main
with:
image: gb3-search-api
use-cache-key:
name: Use Cache Key
runs-on: ubuntu-latest
needs: python
steps:
- name: Print Cache Key
run:
echo ${{ needs.python.outputs.cache_key }}
sonarcloud:
name: SonarCloud
needs: python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gisktzh/github-actions/sonarcloud-analysis@main
with:
sonar_token: ${{ secrets.SONAR_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
coverage_file_path: coverage.xml
coverage_cache_key: ${{ needs.python.outputs.cache_key }}