Skip to content

Commit

Permalink
ci: add secret to update-tags (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjorge-graphops authored Nov 21, 2023
1 parent 43eeafa commit b250074
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/trigger-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ jobs:
- find-tags-to-release
permissions:
contents: write
secrets:
LABELS_TOKEN: "${{ secrets.LABELS_TOKEN }}"
2 changes: 2 additions & 0 deletions .github/workflows/trigger-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/update-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Update Tags

on:
workflow_call:
secrets:
LABELS_TOKEN:
required: true
description: 'Need special privileges token'
workflow_dispatch:

jobs:
Expand All @@ -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: |
Expand Down

0 comments on commit b250074

Please sign in to comment.