feat: templatize GitHub App vars in release workflow
This commit is contained in:
@@ -5,3 +5,9 @@
|
|||||||
- "src/.*/**"
|
- "src/.*/**"
|
||||||
- rename:
|
- rename:
|
||||||
- "^src/(.*)$": "$1"
|
- "^src/(.*)$": "$1"
|
||||||
|
- template:
|
||||||
|
- "src/.github/workflows/release.yaml"
|
||||||
|
- template-vars:
|
||||||
|
GH_APP_ID_VAR: CHRISTMAS_ISLAND_APP_ID
|
||||||
|
GH_APP_KEY_SECRET: CHRISTMAS_ISLAND_PRIVATE_KEY
|
||||||
|
GH_APP_OWNER: christmas-island
|
||||||
|
|||||||
6
src/.github/workflows/release.yaml
vendored
6
src/.github/workflows/release.yaml
vendored
@@ -32,9 +32,9 @@ jobs:
|
|||||||
id: app-token
|
id: app-token
|
||||||
uses: actions/create-github-app-token@v1
|
uses: actions/create-github-app-token@v1
|
||||||
with:
|
with:
|
||||||
app-id: ${{ vars.CHRISTMAS_ISLAND_APP_ID }}
|
app-id: ${{ vars.${GH_APP_ID_VAR:-CHRISTMAS_ISLAND_APP_ID} }}
|
||||||
private-key: ${{ secrets.CHRISTMAS_ISLAND_PRIVATE_KEY }}
|
private-key: ${{ secrets.${GH_APP_KEY_SECRET:-CHRISTMAS_ISLAND_PRIVATE_KEY} }}
|
||||||
owner: christmas-island
|
owner: ${GH_APP_OWNER:-christmas-island}
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user