Repository navigation
Версия 1.1.1 #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mahach666
merged 5 commits into
PilotOpenTools:main
from
tsaregorlionheart:release-1.1.1
Nov 25, 2026
+812
−4,306
Merged
Версия 1.1.1 #5
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7edd5fb
Версия 1.1.1: README с возможностями, установка из релиза, без старой…
tsaregorlionheart 53af1c0
Ревью PR №5: повтор Tag release, бэкапы, восстановление RustFS, смена…
tsaregorlionheart 9a50e19
Ревью PR №5, второй круг: позиционные параметры бэкапа, частичный сте…
tsaregorlionheart 26222b1
Fix backup validation and RustFS restore guidance
mahach666 c09060e
Document safe retries after interrupted restore
mahach666 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| name: Tag release | ||
|
|
||
| # После слияния в main ставит тег vX.Y.Z по <Version> в PilotProAdmin.csproj и запускает Release по этому тегу. | ||
| # Тег, созданный GITHUB_TOKEN, сам workflow Release не запускает, поэтому Release вызывается явно | ||
| # (workflow_dispatch по тегу: github.ref_type = tag, и publish выкладывает релиз). | ||
| # Повторный запуск безопасен: если тег уже стоит на этом коммите, а релиза нет и Release по тегу не идёт и не прошёл, | ||
| # Release запускается снова. Тег на другом коммите - ошибка (версию забыли поднять). | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: ['proadmin/src/ProAdmin/PilotProAdmin.csproj'] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: tag-release | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| tag: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| actions: write | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| fetch-depth: 0 | ||
| fetch-tags: true | ||
| - name: Create tag | ||
| id: tag | ||
| run: | | ||
| version=$(sed -n 's:.*<Version>\(.*\)</Version>.*:\1:p' proadmin/src/ProAdmin/PilotProAdmin.csproj | head -1) | ||
| if ! [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "::error::Invalid project version: $version"; exit 1; fi | ||
| tag="v$version" | ||
| echo "tag=$tag" >> "$GITHUB_OUTPUT" | ||
| if git rev-parse -q --verify "refs/tags/$tag" >/dev/null; then | ||
| target=$(git rev-list -n 1 "$tag") | ||
| if [ "$target" != "$GITHUB_SHA" ]; then | ||
| echo "Тег $tag уже стоит на $target, а не на $GITHUB_SHA: для нового релиза поднимите версию." | ||
| echo "own=false" >> "$GITHUB_OUTPUT" | ||
| exit 0 | ||
| fi | ||
| echo "Тег $tag уже стоит на этом коммите." | ||
| else | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git tag -a "$tag" -m "PilotProAdmin $tag" "$GITHUB_SHA" | ||
| git push origin "refs/tags/$tag" | ||
| echo "Тег $tag поставлен на $GITHUB_SHA." | ||
| fi | ||
| echo "own=true" >> "$GITHUB_OUTPUT" | ||
| - name: Start Release | ||
| if: steps.tag.outputs.own == 'true' | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| TAG: ${{ steps.tag.outputs.tag }} | ||
| run: | | ||
| if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then | ||
| echo "Релиз $TAG уже опубликован." | ||
| exit 0 | ||
| fi | ||
| # Запуск Release по этому тегу, который идёт или уже прошёл (релиз мог ещё не появиться), второй раз не нужен. | ||
| active=$(gh run list --repo "$GITHUB_REPOSITORY" --workflow release.yml --branch "$TAG" --limit 20 \ | ||
| --json status,conclusion --jq '[.[] | select(.status != "completed" or .conclusion == "success")] | length') | ||
| if [ "$active" != "0" ]; then | ||
| echo "Release по $TAG уже запущен или прошёл." | ||
| exit 0 | ||
| fi | ||
| gh workflow run release.yml --repo "$GITHUB_REPOSITORY" --ref "$TAG" | ||
| echo "Release по $TAG запущен." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.