Test auto-update citation.cff #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
uses: Kaven-Universe/github-action-current-date-time@v1 | |
with: | |
format: "YYYY-MM-DD" | |
- name: Test time | |
run: | | |
echo "${{ steps.date.outputs.time }}" | |
- name: edit version number | |
uses: mikefarah/yq@master | |
with: | |
cmd: yq --inplace '.version = "1.0.13"' CITATION.cff | |
- name: Commit changes | |
uses: devops-infra/action-commit-push@master | |
with: | |
github_token: "${{ secrets.GITHUB_TOKEN }}" | |
add_timestamp: false | |
commit_prefix: "[AUTO]" | |
commit_message: "Updated CITATION.cff" | |
force: false | |
target_branch: feature/update-cff |