diff --git a/.github/workflows/updated_examples.yaml b/.github/workflows/updated_examples.yaml index 9adfe65..9a98fe2 100644 --- a/.github/workflows/updated_examples.yaml +++ b/.github/workflows/updated_examples.yaml @@ -53,6 +53,7 @@ jobs: with: app-id: ${{ vars.NB_BOT_ID }} private-key: ${{ secrets.NB_BOT_KEY }} + owner: ${{ github.repository_owner }} - name: Checkout neurobagel_examples repository uses: actions/checkout@v4 @@ -66,18 +67,14 @@ jobs: name: query-tool-results path: neurobagel_examples/query-tool-results - - name: Install GitHub CLI - run: sudo apt-get install gh -y - - - name: Authenticate GitHub CLI - run: echo "${{ steps.generate-token.outputs.token }}" | gh auth login --with-token - - name: Create Pull Request - run: | - git config --global user.name "Neurobagel Bot" - git config --global user.email "neurobagel-bot[bot]@users.noreply.github.com" - git checkout -b update-query-tool-results - git add . - git commit -m "Update query-tool-results files" - git push origin update-query-tool-results - gh pr create --title "Update query-tool-results files" --body "This PR updates the query-tool-results files with the latest changes." --base main --head update-query-tool-results \ No newline at end of file + id: create_pr + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ steps.generate-token.outputs.token }} + commit-message: Update `query-tool-results` files + title: Update `query-tool-results` files + body: "This PR updates the `query-tool-results` files with the latest changes." + base: main + branch: update-query-tool-results + labels: _bot \ No newline at end of file