Skip to content

Commit

Permalink
πŸ”„ synced file(s) with neurobagel/workflows (#325)
Browse files Browse the repository at this point in the history
* πŸ”„ synced local '.github/workflows/release.yaml' with remote 'template_workflows/auto_release/release.yaml'

* πŸ”„ synced local '.autorc' with remote 'template_configs/.autorc'

---------

Co-authored-by: surchs <null>
  • Loading branch information
surchs authored Jul 24, 2024
1 parent 07a6afa commit 0ac0d42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .autorc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
"onlyPublishWithReleaseLabel": true,
"noDefaultLabels": true,
"baseBranch": "main",
"author": "Chef Bot <chef@neurobagel.org>",
"author": "Neurobagel Bot <bot@neurobagel.org>",
"noVersionPrefix": false,
"changelog": {
"message": "Update CHANGELOG.md [skip pre-commit.ci] [skip ci]"
},
"plugins": [
"git-tag",
"released",
"protected-branch",
"first-time-contributor",
[
"omit-commits",
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.NB_BOT_ID }}
private-key: ${{ secrets.NB_BOT_KEY }}

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}

- name: Download latest auto
run: |
Expand All @@ -24,5 +32,4 @@ jobs:
- name: Release
run: ~/auto shipit -vv
env:
GH_TOKEN: ${{ secrets.NB_PAT_RELEASE }}
PROTECTED_BRANCH_REVIEWER_TOKEN: ${{ secrets.NB_PAT_RELEASE_PROTECTED }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

0 comments on commit 0ac0d42

Please sign in to comment.