diff --git a/rwx/update-packages-github/README.md b/rwx/update-packages-github/README.md index cef455c..31dd902 100644 --- a/rwx/update-packages-github/README.md +++ b/rwx/update-packages-github/README.md @@ -20,7 +20,7 @@ To update minor versions (recommended): ```yaml tasks: - key: update-rwx-packages - call: rwx/update-packages-github 2.0.2 + call: rwx/update-packages-github 2.0.3 with: repository: https://github.com/YOUR-ORG/YOUR-REPO.git ref: ${{ init.commit-sha }} @@ -32,7 +32,7 @@ Customize the label: ```yaml tasks: - key: update-rwx-packages - call: rwx/update-packages-github 2.0.2 + call: rwx/update-packages-github 2.0.3 with: repository: https://github.com/YOUR-ORG/YOUR-REPO.git ref: ${{ init.commit-sha }} @@ -51,7 +51,7 @@ Requires repository auto-merge support. ```yaml tasks: - key: update-rwx-packages - call: rwx/update-packages-github 2.0.2 + call: rwx/update-packages-github 2.0.3 with: repository: https://github.com/YOUR-ORG/YOUR-REPO.git ref: ${{ init.commit-sha }} diff --git a/rwx/update-packages-github/rwx-package.yml b/rwx/update-packages-github/rwx-package.yml index 3ebb29e..3e3a3ab 100644 --- a/rwx/update-packages-github/rwx-package.yml +++ b/rwx/update-packages-github/rwx-package.yml @@ -1,5 +1,5 @@ name: rwx/update-packages-github -version: 2.0.2 +version: 2.0.3 description: Update RWX packages for GitHub repositories source_code_url: https://github.com/rwx-cloud/packages/tree/main/rwx/update-packages-github issue_tracker_url: https://github.com/rwx-cloud/packages/issues @@ -34,13 +34,13 @@ parameters: tasks: - key: rwx-cli - call: rwx/install-cli 4.0.1 + call: rwx/install-cli 4.0.4 - key: gh-cli - call: github/install-cli 1.0.8 + call: github/install-cli 1.0.10 - key: code - call: git/clone 2.0.0 + call: git/clone 2.0.7 with: repository: ${{ params.repository }} ref: ${{ params.ref }} @@ -67,7 +67,7 @@ tasks: RWX_FILE: ${{ params.rwx-file}} - key: create-or-update-pr - call: github/create-pull-request 1.0.3 + call: github/create-pull-request 1.0.7 use: update-packages with: github-token: ${{ params.github-token }} @@ -79,6 +79,7 @@ tasks: ``` ${{ tasks.update-packages.values.update-output }} ``` + enable-auto-merge: ${{ params.enable-auto-merge }} - key: pull-request-options use: [gh-cli, code] @@ -89,11 +90,7 @@ tasks: gh label create "$GITHUB_LABEL" --color "$GITHUB_LABEL_COLOR" || true gh pr edit "$GITHUB_PR_NUMBER" --add-label "$GITHUB_LABEL" fi - if [ "$ENABLE_AUTO_MERGE" = "true" ] && [ -n "$GITHUB_PR_NUMBER" ]; then - gh pr merge "$GITHUB_PR_NUMBER" --auto --squash || true - fi env: - ENABLE_AUTO_MERGE: ${{ params.enable-auto-merge }} GITHUB_TOKEN: ${{ params.github-token }} GITHUB_LABEL: ${{ params.label }} GITHUB_LABEL_COLOR: ${{ params.label-color }}