Skip to content

Tune

Tune #2

Workflow file for this run

name: Tune
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
get_cache:
name: Get cache
runs-on: ubuntu-latest
steps:
- name: Get cache from REST API
id: cache
run: |
curl -s https://api.github.com/repos/StronzLabs/Stronzflix/properties/values | jq -r '.[] | select(.property_name == "Cache") | .value' | base64 -d | sed 's/|/ /g' >> "$GITHUB_OUTPUT"
- name: Tune
id: tune
run: |
echo ${{ steps.get_cache.outputs.cache }}
echo "Lg==" >> "$GITHUB_OUTPUT"
- name: Set cache
id: cache

Check failure on line 21 in .github/workflows/tune.yml

View workflow run for this annotation

GitHub Actions / Tune

Invalid workflow file

The workflow is not valid. .github/workflows/tune.yml (Line: 21, Col: 13): The identifier 'cache' may not be used more than once within the same scope.
run: |
curl -s -X PATCH \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/StronzLabs/Stronzflix/properties/values/Cache \
-d "{\"property_name\":\"Cache\",\"value\":\"${{ steps.tune.outputs.cache }}\"}"