Skip to content

Test auto-update citation.cff #13

Test auto-update citation.cff

Test auto-update citation.cff #13

name: Test auto-update citation.cff
on:
workflow_dispatch:
jobs:
update:
name: Update version number
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get current date
id: date
run: |

Check failure on line 16 in .github/workflows/test-update-cff.yml

View workflow run for this annotation

GitHub Actions / Test auto-update citation.cff

Invalid workflow file

The workflow is not valid. .github/workflows/test-update-cff.yml (Line: 16, Col: 14): Unrecognized named-value: 'RELEASE_DATE'. Located at position 1 within expression: RELEASE_DATE .github/workflows/test-update-cff.yml (Line: 28, Col: 20): Unrecognized named-value: 'RELEASE_DATE'. Located at position 1 within expression: RELEASE_DATE
echo "RELEASE_DATE=& Get-Date -format yyyy-MM-dd" >> $GITHUB_ENV
echo "the release date is ${{RELEASE_DATE}}"
- name: edit version number
uses: fjogeleit/yaml-update-action@main
with:
valueFile: 'CITATION.cff'
branch: feature/update-cff
targetBranch: feature/update-cff
createPR: false
commitChange: true
message: 'updated CITATION.cff'
changes: |
{
"version": "1.0.6",
"date-released": "${{RELEASE_DATE}}"
}