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
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
if: github.repository_owner == 'rees46'

steps:
# Self-activates once RELEASE_APP_ID / RELEASE_APP_PRIVATE_KEY are set.
# Self-activates once VERSIONER_ID / VERSIONER_SECRET are set.
# Until then tagging is skipped, but the job stays green.
- name: Resolve tagging readiness
id: ready
env:
APP_ID: ${{ vars.RELEASE_APP_ID }}
APP_ID: ${{ vars.VERSIONER_ID }}
run: |
if [ -n "$APP_ID" ]; then
echo "ready=true" >> "$GITHUB_OUTPUT"
else
echo "RELEASE_APP_ID not set — skipping auto-tagging"
echo "VERSIONER_ID not set — skipping auto-tagging"
echo "ready=false" >> "$GITHUB_OUTPUT"
fi

Expand All @@ -39,8 +39,8 @@ jobs:
if: steps.ready.outputs.ready == 'true'
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
app-id: ${{ vars.VERSIONER_ID }}
private-key: ${{ secrets.VERSIONER_SECRET }}

- name: Checkout
if: steps.ready.outputs.ready == 'true'
Expand Down
4 changes: 2 additions & 2 deletions docs/PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

Автотегировщику (`deploy.yaml`) нужен токен GitHub App для пуша тега — тег от
`GITHUB_TOKEN` по дизайну не триггерит другой workflow. Задать в репозитории:
- **Variable** `RELEASE_APP_ID`
- **Secret** `RELEASE_APP_PRIVATE_KEY`
- **Variable** `VERSIONER_ID`
- **Secret** `VERSIONER_SECRET`

(источник — versioner-app). Пока они не заданы, автотегирование скипается, а
`Deploy` остаётся зелёным (sync продолжает работать).
Expand Down
Loading