Skip to content

Commit

Permalink
Merge branch 'test-cite-workflow' of github.com:jurra/pymurtree into …
Browse files Browse the repository at this point in the history
…test-cite-workflow
  • Loading branch information
jurra committed Aug 29, 2023
2 parents bbff92e + 7be031d commit 81c2ee7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/gen-citation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ jobs:
# if_merged:
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand All @@ -22,15 +29,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[publishing]
pip install cff-from-621
- name: Generate citation based on pyproject.toml
run: |
cff-from-621
- name: Commit and push changes
env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
git config --local user.email "action@github.com"
git config --local user.email "{{ github.actor }}@users.noreply.github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Auto commit after successful merge"
Expand Down

0 comments on commit 81c2ee7

Please sign in to comment.