diff --git a/.github/workflows/test-update-cff.yml b/.github/workflows/test-update-cff.yml index 317e64a..d322f7e 100644 --- a/.github/workflows/test-update-cff.yml +++ b/.github/workflows/test-update-cff.yml @@ -1,4 +1,30 @@ name: Test auto-update citation.cff on: - push: \ No newline at end of file + workflow_dispatch: + + +jobs: + update: + name: Update version number + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + - name: edit version number + uses: fjogeleit/yaml-update-action@main + with: + valueFile: './CITATION.cff' + branch: feature/update-cff + targetBranch: feature/update-cff + createPR: 'true' + message: 'changing version' + changes: | + { + "version": 1.0.3 + } + - name: commit changes + uses: devops-infra/action-commit-push@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + commit-message: updated CITATION.cff \ No newline at end of file