From ea92b0b9e44be2c94511b00c65c098cc8fe478e4 Mon Sep 17 00:00:00 2001 From: o_arnold Date: Thu, 4 Jul 2024 11:39:26 +0200 Subject: [PATCH] changed workflow --- .github/workflows/test-update-cff.yml | 28 ++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) 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