From d95617959850d158c6864834c0f1f8da4fa35c31 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 28 May 2021 14:17:09 +0200 Subject: [PATCH] Fix release workflow --- .github/workflows/build.yml | 8 ++++++-- .github/workflows/release.yml | 10 +++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b2bd0a7b..43f3f7ed9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,10 @@ on: pull_request: branches: '*' +permissions: + contents: + write + env: PIP_DISABLE_PIP_VERSION_CHECK: 1 @@ -21,8 +25,8 @@ jobs: uses: actions/checkout@v2 - name: Build checksum file run: | - sed -n 17,146p .github/workflows/build.yml > build - sed -n 17,146p .github/workflows/release.yml > release + sed -n 20,146p .github/workflows/build.yml > build + sed -n 20,146p .github/workflows/release.yml > release diff build release test: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4de9d1177..6a66cc55a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,10 @@ on: - '*' +permissions: + contents: + write + env: PIP_DISABLE_PIP_VERSION_CHECK: 1 @@ -21,8 +25,8 @@ jobs: uses: actions/checkout@v2 - name: Build checksum file run: | - sed -n 17,146p .github/workflows/build.yml > build - sed -n 17,146p .github/workflows/release.yml > release + sed -n 20,146p .github/workflows/build.yml > build + sed -n 20,146p .github/workflows/release.yml > release diff build release test: @@ -219,7 +223,7 @@ jobs: docker run --rm -v "$(pwd)":/usr/local/src/your-app \ -e CHANGELOG_GITHUB_TOKEN=${CHANGELOG_GITHUB_TOKEN} \ ferrarimarco/github-changelog-generator \ - github_changelog_generator -u jtpio -p retrolab --usernames-as-github-logins --no-issues --no-unreleased \ + github_changelog_generator -u jupyterlab -p retrolab --usernames-as-github-logins --no-issues --no-unreleased \ --since-tag ${{ steps.previous_tag.outputs.tag }} --header "" --pr-label "## Changes" head -n -1 CHANGELOG.md > CHANGELOG - name: Create Release