use environments
This commit is contained in:
parent
b3f20decdc
commit
c9b1adf3b6
2 changed files with 25 additions and 1 deletions
25
.github/workflows/release-check.yml
vendored
25
.github/workflows/release-check.yml
vendored
|
|
@ -54,4 +54,27 @@ jobs:
|
||||||
|
|
||||||
- name: Check release
|
- name: Check release
|
||||||
run: |
|
run: |
|
||||||
uv run --script scripts/release.py --dry-run "${{ matrix.directory }}" "${{ needs.prepare.outputs.last_release }}"
|
uv run --script scripts/release.py --dry-run "${{ matrix.directory }}" "${{ needs.prepare.outputs.last_release }}" | tee -a "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
check-tag:
|
||||||
|
needs: [prepare, check-release]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Simulate tag creation
|
||||||
|
run: |
|
||||||
|
if [ -s "$GITHUB_OUTPUT" ]; then
|
||||||
|
DATE=$(date +%Y.%m.%d)
|
||||||
|
echo "🔍 Dry run: Would create tag v${DATE} if this was a real release"
|
||||||
|
|
||||||
|
echo "# Release ${DATE}" > notes.md
|
||||||
|
echo "" >> notes.md
|
||||||
|
echo "## Updated Packages" >> notes.md
|
||||||
|
while IFS= read -r line; do
|
||||||
|
echo "- ${line}" >> notes.md
|
||||||
|
done < "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
echo "🔍 Would create release with following notes:"
|
||||||
|
cat notes.md
|
||||||
|
fi
|
||||||
|
|
|
||||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
|
@ -33,6 +33,7 @@ jobs:
|
||||||
release:
|
release:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: release
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
directory: ${{ fromJson(needs.prepare.outputs.matrix) }}
|
directory: ${{ fromJson(needs.prepare.outputs.matrix) }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue