From fda6f32b6d6b5f20ef4067629506d54f724b66b1 Mon Sep 17 00:00:00 2001 From: Tom Morrell Date: Thu, 7 Nov 2024 15:35:45 -0800 Subject: [PATCH] Update codemeta2cff.yml --- .github/workflows/codemeta2cff.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codemeta2cff.yml b/.github/workflows/codemeta2cff.yml index 832a2af..ddfb8f5 100644 --- a/.github/workflows/codemeta2cff.yml +++ b/.github/workflows/codemeta2cff.yml @@ -1,9 +1,9 @@ name: CodeMeta2CFF +run-name: Run CodeMeta2CFF after ${{github.event_name}} by ${{github.actor}} on: push: - tags: - - v* + paths: ['codemeta.json'] workflow_dispatch: inputs: reason: @@ -13,15 +13,14 @@ on: jobs: CodeMeta2CFF: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Convert CFF uses: caltechlibrary/codemeta2cff@main - - name: Commit and Push Changes - id: commit-and-push - uses: stefanzweifel/git-auto-commit-action@v5 + - name: Commit CFF + uses: EndBug/add-and-commit@v9 with: - commit_message: 'Add CITATION.cff for release' - file_pattern: 'CITATION.cff' + message: 'Add updated CITATION.cff from codemeta.json file' + add: 'CITATION.cff'