Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ on:
type: string
required: false

secrets:
github_auth_token:
description: "The authentication token for doing some operators with GitHub."
required: false

outputs:
python_release_version:
description: "The version which would be build as git tag and create GitHub release version title."
Expand Down Expand Up @@ -85,7 +90,7 @@ jobs:

echo "::set-output name=release_type::$(echo $release_type)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.github_auth_token }}

# This flow for the project type is GitHub Action reusable workflow
- name: Build git tag and create GitHub release for GitHub Action reusable workflow project
Expand All @@ -100,5 +105,5 @@ jobs:

echo "::set-output name=release_version::$(echo $release_version)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.github_auth_token }}

2 changes: 2 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
# name: Build git tag and GitHub release if it needs
if: ${{ github.ref_name == 'master' && github.event_name == 'push' }}
uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml
secrets:
github_auth_token: ${{ secrets.GITHUB_TOKEN }}
with:
project_type: github-action-reusable-workflow
debug_mode: false
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_gh_reusable_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
test_build_git-tag_and_create_github-release:
# name: Build git tag and GitHub release if it needs
uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml
secrets:
github_auth_token: ${{ secrets.GITHUB_TOKEN }}
with:
project_type: github-action-reusable-workflow
debug_mode: true
Expand Down