Skip to content

Commit

Permalink
Set the owner
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Jan 10, 2025
1 parent ccadfd1 commit c974014
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/updated_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
id: create_pr
uses: peter-evans/create-pull-request@v7

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'update examples' step
Uses Step: create_pr
uses 'peter-evans/create-pull-request' with ref 'v7', not a pinned commit hash
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

0 comments on commit c974014

Please sign in to comment.