From bdc950b021fe580fbef3844fa3969e47b161a21f Mon Sep 17 00:00:00 2001 From: Luca Guerra Date: Mon, 18 Sep 2023 12:20:52 +0000 Subject: [PATCH] lowercase, disable master and release --- .github/workflows/master.yaml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/upload-oci-artifacts.yaml | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index 93dba239..d1df744a 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -2,7 +2,7 @@ name: Update Plugins-dev on: push: - branches: [ master ] + branches: [ not-master ] workflow_dispatch: # Checks if any concurrent jobs is already being executed for master and cancel it. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1cca462c..86fb4bc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: push: tags: # All tags - - '**' + - 'not-release-**' # Checks if any concurrent jobs is running for release CI and eventually cancel it. concurrency: diff --git a/.github/workflows/upload-oci-artifacts.yaml b/.github/workflows/upload-oci-artifacts.yaml index 3406f8ce..a9bf8e07 100644 --- a/.github/workflows/upload-oci-artifacts.yaml +++ b/.github/workflows/upload-oci-artifacts.yaml @@ -28,11 +28,16 @@ jobs: working-directory: build/registry run: make + - name: Get lowercase owner + run: | + REPOSITORY_OWNER="${{ github.repository_owner }}" + echo "REPOSITORY_OWNER=${REPOSITORY_OWNER,,}" >>${GITHUB_ENV} + - name: Upload OCI artifacts to GitHub packages id: oci_build env: REGISTRY: ghcr.io - REGISTRY_USER: ${{ github.repository_owner }} + REGISTRY_USER: ${{ env.REPOSITORY_OWNER }} REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPO_GITHUB: https://github.com/${{ github.repository_owner }}/plugins.git working-directory: build/registry