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 @@ -12,7 +12,7 @@ on:
- 'workflow-templates/**'
- 'workflow-catalog.json'
- 'scripts/sync_catalog.py'
- '.github/workflows/publish-workflow-catalog.yml'
- '.github/workflows/catalog-publish.yml'

permissions:
contents: read
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

name: release-tool setup smoke
name: Release tool setup smoke test

on:
pull_request:
paths:
- 'actions/setup-release-tool/**'
- 'tests/test_setup_release_tool_action.py'
- '.github/workflows/setup-release-tool-smoke.yml'
- 'actions/release-tool-setup/**'
- 'tests/test_release_tool_setup_action.py'
- '.github/workflows/release-tool-smoke.yml'
push:
branches:
- main
paths:
- 'actions/setup-release-tool/**'
- '.github/workflows/setup-release-tool-smoke.yml'
- 'actions/release-tool-setup/**'
- '.github/workflows/release-tool-smoke.yml'

permissions:
contents: read
Expand All @@ -32,7 +32,7 @@ jobs:
php-version: '8.3'
coverage: none
- id: release-tool
uses: $/actions/setup-release-tool
uses: $/actions/release-tool-setup
with:
version: '0.1.0'
- name: Verify installed PHAR
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

name: Release
name: Publish github-workflows

on:
push:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'upstream/sources.json'
- 'upstream/templates.json'
- 'patches/nextcloud/**'
- '.github/workflows/refresh-upstream.yml'
- '.github/workflows/upstream-refresh.yml'
schedule:
- cron: '17 3 * * 0'

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.0
0.5.0
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
steps:
- id: setup
name: Setup release-tool
uses: $/actions/setup-release-tool
uses: $/actions/release-tool-setup

- id: validate
name: Validate release consumer
Expand Down
2 changes: 1 addition & 1 deletion actions/release-plan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
steps:
- id: setup
name: Setup release-tool
uses: $/actions/setup-release-tool
uses: $/actions/release-tool-setup

- id: plan
name: Build ReleasePlan v1
Expand Down
6 changes: 3 additions & 3 deletions actions/release-post-merge/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ runs:
steps:
- id: restore
name: Restore preparation contracts
uses: $/actions/restore-release-artifact
uses: $/actions/release-artifact-restore
with:
repository: ${{ github.repository }}
artifact-name: release-preparation-pr-${{ inputs.pull-request-number }}
Expand All @@ -62,7 +62,7 @@ runs:

- id: setup
name: Setup release-tool
uses: $/actions/setup-release-tool
uses: $/actions/release-tool-setup

- id: authorization-config
name: Read merge authorization policy
Expand All @@ -78,7 +78,7 @@ runs:
echo "minimum-permission=${minimum_permission}" >> "${GITHUB_OUTPUT}"

- name: Authorize release PR merger
uses: $/actions/check-release-authorization
uses: $/actions/release-authorization
with:
repository: ${{ github.repository }}
actor: ${{ inputs.merger }}
Expand Down
2 changes: 1 addition & 1 deletion actions/release-prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ runs:
echo "minimum-permission=${minimum_permission}" >> "${GITHUB_OUTPUT}"

- name: Authorize preparation actor
uses: $/actions/check-release-authorization
uses: $/actions/release-authorization
with:
repository: ${{ github.repository }}
actor: ${{ inputs.actor }}
Expand Down
4 changes: 2 additions & 2 deletions actions/release-publication/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
using: composite
steps:
- name: Restore finalized release state
uses: $/actions/restore-release-artifact
uses: $/actions/release-artifact-restore
with:
repository: ${{ github.repository }}
artifact-name: release-state-${{ inputs.github-release-id }}
Expand All @@ -51,7 +51,7 @@ runs:

- id: setup
name: Setup release-tool
uses: $/actions/setup-release-tool
uses: $/actions/release-tool-setup

- id: verify
name: Wait for publication verification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
ACTION = ROOT / "actions" / "validate-release-consumer" / "action.yml"
SCRIPT = ROOT / "actions" / "validate-release-consumer" / "validate.sh"
ACTION = ROOT / "actions" / "release-consumer-validate" / "action.yml"
SCRIPT = ROOT / "actions" / "release-consumer-validate" / "validate.sh"


class ValidateReleaseConsumerActionTest(unittest.TestCase):
def test_action_wraps_setup_and_exposes_normalized_outputs(self) -> None:
content = ACTION.read_text(encoding="utf-8")

self.assertIn("uses: $/actions/setup-release-tool", content)
self.assertIn("uses: $/actions/release-tool-setup", content)
for output in (
"version:",
"major:",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_release_plan_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ReleasePlanActionTest(unittest.TestCase):
def test_action_uses_exact_verified_release_tool(self) -> None:
content = ACTION.read_text(encoding="utf-8")

self.assertIn("uses: $/actions/setup-release-tool", content)
self.assertIn("uses: $/actions/release-tool-setup", content)
self.assertNotIn("with:\n version:", content)
self.assertIn("release:plan", content)
self.assertIn("--release-version", content)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_release_post_merge_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

ROOT = Path(__file__).resolve().parents[1]
ACTION = ROOT / "actions" / "release-post-merge" / "action.yml"
RESTORE = ROOT / "actions" / "restore-release-artifact" / "action.yml"
RESTORE = ROOT / "actions" / "release-artifact-restore" / "action.yml"


class ReleasePostMergeActionTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_release_prepare_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_prepare_composes_policy_contracts_and_scoped_mutation(self) -> None:
self.assertIn("$/actions/release-plan", content)
self.assertIn("config:validate", content)
self.assertIn("prepare_min_permission", content)
self.assertIn("$/actions/check-release-authorization", content)
self.assertIn("$/actions/release-authorization", content)
self.assertIn("actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42", content)
self.assertIn("permission-contents: write", content)
self.assertIn("permission-pull-requests: write", content)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
SCRIPT = ROOT / "actions" / "setup-release-tool" / "setup.sh"
ACTION = ROOT / "actions" / "setup-release-tool" / "action.yml"
VERSION = ROOT / "actions" / "setup-release-tool" / "release-tool-version"
SCRIPT = ROOT / "actions" / "release-tool-setup" / "setup.sh"
ACTION = ROOT / "actions" / "release-tool-setup" / "action.yml"
VERSION = ROOT / "actions" / "release-tool-setup" / "release-tool-version"


class SetupReleaseToolActionTest(unittest.TestCase):
Expand Down
Loading