From cca549084cd36aa78ec79a67821184ce0b5fee99 Mon Sep 17 00:00:00 2001 From: "neurobagel-bot[bot]" <176077434+neurobagel-bot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:32:16 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20file(s)=20with=20neurob?= =?UTF-8?q?agel/workflows=20(#135)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔄 synced local '.github/workflows/' with remote 'template_workflows/project_automation/' * 🔄 synced local '.github/workflows/build_docker_on_release.yml' with remote 'template_workflows/auto_release/build_docker_on_release.yml' * 🔄 synced local '.github/workflows/build_docker_nightly.yml' with remote 'template_workflows/build_docker_nightly.yml' --------- Co-authored-by: neurobagel-bot[bot] <176077434+neurobagel-bot[bot]@users.noreply.github.com> --- .github/workflows/add_iss2project.yml | 9 ++++++++- .github/workflows/build_docker_nightly.yml | 3 +++ .github/workflows/build_docker_on_release.yml | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add_iss2project.yml b/.github/workflows/add_iss2project.yml index 30d57fc..32c3d18 100644 --- a/.github/workflows/add_iss2project.yml +++ b/.github/workflows/add_iss2project.yml @@ -10,7 +10,14 @@ jobs: name: Add issue to project runs-on: ubuntu-latest 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 }} + - uses: actions/add-to-project@main with: project-url: https://github.com/orgs/neurobagel/projects/1 - github-token: ${{ secrets.NB_PROJECT_PAT }} + github-token: ${{ steps.generate-token.outputs.token }} diff --git a/.github/workflows/build_docker_nightly.yml b/.github/workflows/build_docker_nightly.yml index f47c26f..44fb74d 100644 --- a/.github/workflows/build_docker_nightly.yml +++ b/.github/workflows/build_docker_nightly.yml @@ -12,6 +12,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + # Some repos have submodules that need to be part of the Docker image + with: + submodules: recursive - name: Login to Docker Hub uses: docker/login-action@v3 diff --git a/.github/workflows/build_docker_on_release.yml b/.github/workflows/build_docker_on_release.yml index 7e3a1cc..f229bcd 100644 --- a/.github/workflows/build_docker_on_release.yml +++ b/.github/workflows/build_docker_on_release.yml @@ -11,6 +11,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + # Some repos have submodules that need to be part of the Docker image + with: + submodules: recursive - # The release event is a superset of the push tag event, # so we expect two tags to be generated by docker/metadata-action