Skip to content

Commit

Permalink
Checkout protostream branch so that the PR milestone can be calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanemerson committed Jul 3, 2024
1 parent 48f8de1 commit 44987d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dependabot_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ jobs:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
repository: infinispan/infinispan
path: infinispan

# Explicitly set the default repository as it will be infinispan/infinispan due to the previous checkout step
- run: |
Expand All @@ -38,7 +42,7 @@ jobs:

- name: Create or Update Existing Jira
run: |
source ./bin/jira/upsert.sh
source ./infinispan/bin/jira/upsert.sh
echo "JIRA_ISSUE_KEY=${JIRA_ISSUE_KEY}" >> $GITHUB_ENV
echo "JIRA_ISSUE_URL=${JIRA_ISSUE_URL}" >> $GITHUB_ENV
env:
Expand Down Expand Up @@ -73,7 +77,7 @@ jobs:
sudo apt-get install xmlstarlet
MVN_VERSION=$(xmlstarlet sel -t -m _:project -v _:version pom.xml)
export MAJOR_MINOR_VERSION=${MVN_VERSION%.*}
gh pr edit ${{ github.event.pull_request.number }} --milestone "$(./bin/jira/get_milestone.sh)"
gh pr edit ${{ github.event.pull_request.number }} --milestone "$(./infinispan/bin/jira/get_milestone.sh)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_KEY: ISPN
Expand Down

0 comments on commit 44987d5

Please sign in to comment.