-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
162 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
--- | ||
"provisioner": patch | ||
--- | ||
|
||
fix: Update timeout of bunq2ynab to prevent 1password rate limit |
This file contains 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,5 @@ | ||
--- | ||
"provisioner": patch | ||
--- | ||
|
||
chore(deps): Update teleport to 14.2.3 |
This file contains 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,5 @@ | ||
--- | ||
"provisioner": patch | ||
--- | ||
|
||
fix: Ensure nix-build is available inside GitHub actions |
This file contains 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,5 @@ | ||
--- | ||
"rules_release": patch | ||
--- | ||
|
||
fix: Fix passing multiple arguments to generate-hashes and get-impacted-targets |
This file contains 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,5 @@ | ||
--- | ||
"rules_release": minor | ||
--- | ||
|
||
feat: Enable passing `previous_revision_cmd` and `final_revision_cmd` to `bazel_diff_release` |
This file contains 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,5 @@ | ||
--- | ||
"rules_release": minor | ||
--- | ||
|
||
feat: Add `release_changed_files` to enable releasing based on changed file paths inside of git |
This file contains 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,5 @@ | ||
--- | ||
"rules_release": minor | ||
--- | ||
|
||
feat: Support changing git directories better by stashing and restoring the working directory |
This file contains 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,5 @@ | ||
--- | ||
"rules_task": patch | ||
--- | ||
|
||
build: Use `release_changed_files` instead of `bazel_diff_release` to detect changes for a release. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
load("//tools/private:publish_github_release.bzl", _publish_github_release = "publish_github_release") | ||
load("//tools/private:publish_oci_image.bzl", _publish_oci_image = "publish_oci_image") | ||
load("//tools/private:bazel_diff_release.bzl", _bazel_diff_release = "bazel_diff_release") | ||
load("//tools/private:release_changed_files.bzl", _release_changed_files = "release_changed_files") | ||
|
||
publish_github_release = _publish_github_release | ||
bazel_diff_release = _bazel_diff_release | ||
publish_oci_image = _publish_oci_image | ||
release_changed_files = _release_changed_files |
This file contains 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
This file contains 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
48 changes: 48 additions & 0 deletions
48
rules/rules_release/tools/private/release_changed_files.bzl
This file contains 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,48 @@ | ||
load("//release:defs.bzl", "release") | ||
load("@rules_task//task:defs.bzl", "cmd", "task") | ||
|
||
def release_changed_files(changed_file_paths, previous_revision_cmd = None, final_revision_cmd = None, **kwargs): | ||
name = kwargs.get("name") | ||
change_cmd_name = "{}.change_cmd".format(name) | ||
previous_revision_cmd_name = previous_revision_cmd | ||
final_revision_cmd_name = final_revision_cmd | ||
|
||
if not previous_revision_cmd_name: | ||
previous_revision_cmd_name = "{}.previous_revision_cmd".format(name) | ||
|
||
task( | ||
name = previous_revision_cmd_name, | ||
cmds = [ | ||
"git rev-parse master", | ||
], | ||
cwd = "$BUILD_WORKSPACE_DIRECTORY", | ||
) | ||
|
||
if not final_revision_cmd_name: | ||
final_revision_cmd_name = "{}.final_revision_cmd".format(name) | ||
|
||
task( | ||
name = final_revision_cmd_name, | ||
cmds = [ | ||
"git rev-parse HEAD", | ||
], | ||
cwd = "$BUILD_WORKSPACE_DIRECTORY", | ||
) | ||
|
||
task( | ||
name = change_cmd_name, | ||
cmds = [ | ||
"export PREVIOUS_REVISION=$($PREVIOUS_REVISION_CMD)", | ||
"export FINAL_REVISION=$($FINAL_REVISION_CMD)", | ||
"export HAS_CHANGED=$(git diff --name-only $PREVIOUS_REVISION $FINAL_REVISION -- $CHANGED_FILES)", | ||
'if [ -z "$HAS_CHANGED" ]; then echo "false"; else echo "true"; fi', | ||
], | ||
cwd = "$BUILD_WORKSPACE_DIRECTORY", | ||
env = { | ||
"PREVIOUS_REVISION_CMD": cmd.executable(previous_revision_cmd_name), | ||
"FINAL_REVISION_CMD": cmd.executable(final_revision_cmd_name), | ||
"CHANGED_FILES": cmd.shell(*changed_file_paths), | ||
}, | ||
) | ||
|
||
release(change_cmd = change_cmd_name, **kwargs) |
This file contains 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