Skip to content

Commit

Permalink
Try making a pull request when there's a data update
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Apr 3, 2023
1 parent 3c6bb77 commit 1b76913
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/update_range_message.yml
Expand Up @@ -53,14 +53,17 @@ jobs:
continue-on-error: true
run: |
git diff
git checkout -b "actions/data-update-${{env.NEW_VERSION}}"
git add lib/Business/ISBN/RangeMessage.xml lib/Business/ISBN/Data.pm
git commit -m "RangeMessage.xml for {{ env.NEW_VERSION }}" lib/Business/ISBN/RangeMessage.xml lib/Business/ISBN/Data.pm
git push origin master
git commit -m "RangeMessage.xml for ${{ env.NEW_VERSION }}" lib/Business/ISBN/RangeMessage.xml lib/Business/ISBN/Data.pm
git push origin "actions/data-update-${{env.NEW_VERSION}}"
echo "CHANGES_PUSHED=1" >> $GITHUB_ENV
- uses: JasonEtco/create-an-issue@v2
id: create-issue
if: ${{ env.RANGE_MESSAGES_SAME == 0 }}
env:
GITHUB_TOKEN: ${{ secrets.ISSUES_GITHUB_TOKEN }}
- name: Create Pull Request
if: ${{ env.CHANGES_PUSHED == 1 }}
uses: peter-evans/create-pull-request@v4
with:
filename: .github/new_range_message_template.md
token: ${{ secrets.ISSUES_GITHUB_TOKEN }}
assignees: briandfoy
labels: "Type: data update"
title: Data update for ${{env.NEW_VERSION}}
delete-branch: true

0 comments on commit 1b76913

Please sign in to comment.