From ee273335cf660b00e2f62322722af12b2816ef3c Mon Sep 17 00:00:00 2001 From: Carlos Jorge Date: Tue, 21 Nov 2023 06:53:54 +0000 Subject: [PATCH] ci: add secret to update-tags --- .github/workflows/trigger-push.yaml | 2 ++ .github/workflows/trigger-tags.yaml | 2 ++ .github/workflows/update-tags.yaml | 11 ++++++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trigger-push.yaml b/.github/workflows/trigger-push.yaml index cabf08e8c..22077062e 100644 --- a/.github/workflows/trigger-push.yaml +++ b/.github/workflows/trigger-push.yaml @@ -75,3 +75,5 @@ jobs: - find-tags-to-release permissions: contents: write + secrets: + LABELS_TOKEN: "${{ secrets.LABELS_TOKEN }}" diff --git a/.github/workflows/trigger-tags.yaml b/.github/workflows/trigger-tags.yaml index 18c74b8c4..8ccdd405e 100644 --- a/.github/workflows/trigger-tags.yaml +++ b/.github/workflows/trigger-tags.yaml @@ -15,6 +15,8 @@ jobs: uses: ./.github/workflows/update-tags.yaml permissions: contents: write + secrets: + LABELS_TOKEN: "${{ secrets.LABELS_TOKEN }}" release: uses: ./.github/workflows/make-release.yaml diff --git a/.github/workflows/update-tags.yaml b/.github/workflows/update-tags.yaml index f81faae9f..f343407bb 100644 --- a/.github/workflows/update-tags.yaml +++ b/.github/workflows/update-tags.yaml @@ -2,6 +2,10 @@ name: Update Tags on: workflow_call: + secrets: + LABELS_TOKEN: + required: true + description: 'Need special privileges token' workflow_dispatch: jobs: @@ -11,12 +15,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: "main" token: ${{ secrets.LABELS_TOKEN }} + - name: Configure Git + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor}}@users.noreply.github.com" + - name: Get namespaces id: namespaces run: |