From 6f9e83be81395c2a82354d3d0995dea6381c90bf Mon Sep 17 00:00:00 2001 From: 6C656C65 <73671374+6C656C65@users.noreply.github.com> Date: Sat, 31 May 2025 00:56:12 +0200 Subject: [PATCH] fix: build-docker version & build-packages permissions --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa99087..11e63f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,10 +77,9 @@ jobs: run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Get version - id: get_version run: | - version=$(grep '^__version__' pyproxy/__init__.py | cut -d'"' -f2) - echo "version=${version}" >> $GITHUB_ENV + VERSION=$(grep '^__version__' pyproxy/__init__.py | cut -d'"' -f2) + echo "VERSION=${VERSION}" >> $GITHUB_ENV - name: Convert repository owner to lowercase run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV @@ -103,7 +102,7 @@ jobs: if: github.event_name == 'push' runs-on: ubuntu-latest permissions: - contents: read + contents: write id-token: write steps: