diff --git a/.github/SECURITY.md b/.github/SECURITY.md
index 43c4643..cf38dba 100644
--- a/.github/SECURITY.md
+++ b/.github/SECURITY.md
@@ -4,13 +4,13 @@
The following versions of `ergebnis/.github` have active support:
-- `^1.9.2`
+- `^1.10.0`
## Unsupported Versions
The following versions of `ergebnis/.github` have reached their end of life:
-- `<1.9.2`
+- `<1.10.0`
## Reporting a Vulnerability
diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
index fc4c7b3..6b0897f 100644
--- a/.github/dependabot.yaml
+++ b/.github/dependabot.yaml
@@ -12,7 +12,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -23,7 +23,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -34,7 +34,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -45,7 +45,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -56,7 +56,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -67,7 +67,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -78,7 +78,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -89,7 +89,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -100,7 +100,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -111,7 +111,7 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
- commit-message:
include: "scope"
@@ -122,4 +122,4 @@ updates:
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
- interval: "daily"
+ interval: "weekly"
diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml
index 11a23e1..ded9d74 100644
--- a/.github/workflows/integrate.yaml
+++ b/.github/workflows/integrate.yaml
@@ -18,7 +18,7 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v4.1.7"
+ uses: "actions/checkout@v5.0.0"
- name: "Lint YAML files"
uses: "ibiqlik/action-yamllint@v3.1.1"
diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml
index f2634dd..61d417f 100644
--- a/.github/workflows/merge.yaml
+++ b/.github/workflows/merge.yaml
@@ -26,23 +26,23 @@ jobs:
steps:
- name: "Request review from @ergebnis-bot"
- uses: "ergebnis/.github/actions/github/pull-request/request-review@1.9.1"
+ uses: "ergebnis/.github/actions/github/pull-request/request-review@1.10.0"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
reviewer: "ergebnis-bot"
- name: "Assign @ergebnis-bot"
- uses: "ergebnis/.github/actions/github/pull-request/add-assignee@1.9.1"
+ uses: "ergebnis/.github/actions/github/pull-request/add-assignee@1.10.0"
with:
assignee: "ergebnis-bot"
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
- name: "Approve pull request"
- uses: "ergebnis/.github/actions/github/pull-request/approve@1.9.1"
+ uses: "ergebnis/.github/actions/github/pull-request/approve@1.10.0"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
- name: "Merge pull request"
- uses: "ergebnis/.github/actions/github/pull-request/merge@1.9.1"
+ uses: "ergebnis/.github/actions/github/pull-request/merge@1.10.0"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index b807454..9b17703 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -17,6 +17,19 @@ jobs:
steps:
- name: "Create release"
- uses: "ergebnis/.github/actions/github/release/create@1.9.1"
+ uses: "ergebnis/.github/actions/github/release/create@1.10.0"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
+
+ - name: "Post to twitter.com about release"
+ uses: "Eomm/why-don-t-you-tweet@v2.0.0"
+ env:
+ TWITTER_ACCESS_TOKEN: "${{ secrets.ERGEBNIS_TWITTER_ACCESS_TOKEN }}"
+ TWITTER_ACCESS_TOKEN_SECRET: "${{ secrets.ERGEBNIS_TWITTER_ACCESS_TOKEN_SECRET }}"
+ TWITTER_CONSUMER_API_KEY: "${{ secrets.ERGEBNIS_TWITTER_CONSUMER_API_KEY }}"
+ TWITTER_CONSUMER_API_SECRET: "${{ secrets.ERGEBNIS_TWITTER_CONSUMER_API_KEY_SECRET }}"
+ with:
+ tweet-message: |
+ ❤️ Just released: ${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}:${{ env.RELEASE_TAG }}.
+
+ ${{ env.RELEASE_HTML_URL }}
diff --git a/.github/workflows/triage.yaml b/.github/workflows/triage.yaml
index f8f2198..1218ec2 100644
--- a/.github/workflows/triage.yaml
+++ b/.github/workflows/triage.yaml
@@ -17,6 +17,6 @@ jobs:
steps:
- name: "Add labels based on branch name"
- uses: "ergebnis/.github/actions/github/pull-request/add-label-based-on-branch-name@1.9.1"
+ uses: "ergebnis/.github/actions/github/pull-request/add-label-based-on-branch-name@1.10.0"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fc124cd..d619782 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## Unreleased
-For a full diff see [`1.9.2...main`][1.9.2...main].
+For a full diff see [`1.9.3...main`][1.9.3...main].
+
+### Added
+
+- Added `github/release/publish` to allow publishing a release ([#215]), by [@localheinz]
+
+### Changed
+
+- Added a `draft` input to `github/release/create` to allow creating releases in draft mode ([#214]), by [@localheinz]
+
+## [`1.9.3`][1.9.3]
+
+For a full diff see [`1.9.2...1.9.3`][1.9.2...1.9.3].
+
+### Fixed
+
+- Updated `actions/cache` ([#207], [#208], [#209]), by [@dependabot]
## [`1.9.2`][1.9.2]
@@ -167,6 +183,7 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
[1.9.0]: https://github.com/ergebnis/.github/releases/tag/1.9.0
[1.9.1]: https://github.com/ergebnis/.github/releases/tag/1.9.1
[1.9.2]: https://github.com/ergebnis/.github/releases/tag/1.9.2
+[1.9.3]: https://github.com/ergebnis/.github/releases/tag/1.9.3
[ca7f15d...1.0.0]: https://github.com/ergebnis/.github/compare/ca7f15d...1.0.0
[1.0.0...1.1.0]: https://github.com/ergebnis/.github/compare/1.0.0...1.1.0
@@ -185,7 +202,8 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
[1.8.0...1.9.0]: https://github.com/ergebnis/.github/compare/1.8.0...1.9.0
[1.9.0...1.9.1]: https://github.com/ergebnis/.github/compare/1.9.0...1.9.1
[1.9.1...1.9.2]: https://github.com/ergebnis/.github/compare/1.9.1...1.9.2
-[1.9.2...main]: https://github.com/ergebnis/.github/compare/1.9.2...main
+[1.9.2...1.9.3]: https://github.com/ergebnis/.github/compare/1.9.2...1.9.3
+[1.9.3...main]: https://github.com/ergebnis/.github/compare/1.9.3...main
[#47]: https://github.com/ergebnis/.github/pull/47
[#48]: https://github.com/ergebnis/.github/pull/48
@@ -209,7 +227,13 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
[#183]: https://github.com/ergebnis/.github/pull/183
[#194]: https://github.com/ergebnis/.github/pull/194
[#197]: https://github.com/ergebnis/.github/pull/197
+[#207]: https://github.com/ergebnis/.github/pull/207
+[#208]: https://github.com/ergebnis/.github/pull/208
+[#209]: https://github.com/ergebnis/.github/pull/209
+[#214]: https://github.com/ergebnis/.github/pull/214
+[#215]: https://github.com/ergebnis/.github/pull/215
+[@dependabot]: https://github.com/dependabot
[@jaymecd]: https://github.com/jaymecd
[@localheinz]: https://github.com/localheinz
[@lotyp]: https://github.com/lotyp
diff --git a/FUNDING.yaml b/FUNDING.yaml
deleted file mode 100644
index 8730580..0000000
--- a/FUNDING.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
-
-github:
- - "ergebnis"
- - "localheinz"
diff --git a/README.md b/README.md
index a1000a2..ad20f03 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,7 @@ This project provides the following composite actions:
- [`ergebnis/.github/actions/github/pull-request/merge`](#github-pull-request-merge)
- [`ergebnis/.github/actions/github/pull-request/request-review`](#github-pull-request-review)
- [`ergebnis/.github/actions/github/release/create`](#github-release-create)
+- [`ergebnis/.github/actions/github/release/publish`](#github-release-publish)
- [`ergebnis/.github/actions/oh-dear/check/request-run`](#oh-dear-check-request-run)
- [`ergebnis/.github/actions/oh-dear/maintenance-period/start`](#oh-dear-maintenance-period-start)
- [`ergebnis/.github/actions/oh-dear/maintenance-period/stop`](#oh-dear-maintenance-period-stop)
@@ -47,19 +48,19 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v3.0.2"
+ uses: "actions/checkout@v5.0.0"
- name: "Set up PHP"
- uses: "shivammathur/setup-php@2.21.2"
+ uses: "shivammathur/setup-php@2.35.4"
with:
coverage: "none"
php-version: "8.1"
- name: "Determine composer cache directory"
- uses: "ergebnis/.github/actions/composer/determine-cache-directory@1.8.0"
+ uses: "ergebnis/.github/actions/composer/determine-cache-directory@1.9.3"
- name: "Cache dependencies installed with composer"
- uses: "actions/cache@v3.0.8"
+ uses: "actions/cache@v4.2.4"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "composer-${{ hashFiles('composer.lock') }}"
@@ -103,16 +104,16 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v3.0.2"
+ uses: "actions/checkout@v5.0.0"
- name: "Set up PHP"
- uses: "shivammathur/setup-php@2.21.2"
+ uses: "shivammathur/setup-php@2.35.4"
with:
coverage: "none"
php-version: "8.1"
- name: "Determine composer root version"
- uses: "ergebnis/.github/actions/composer/determine-root-version@1.8.0"
+ uses: "ergebnis/.github/actions/composer/determine-root-version@1.9.3"
```
For details, see [`actions/composer/determine-root-version/action.yaml`](actions/composer/determine-root-version/action.yaml).
@@ -168,26 +169,26 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v3.0.2"
+ uses: "actions/checkout@v5.0.0"
- name: "Set up PHP"
- uses: "shivammathur/setup-php@2.21.2"
+ uses: "shivammathur/setup-php@2.35.4"
with:
coverage: "none"
php-version: "8.1"
- name: "Determine composer cache directory"
- uses: "ergebnis/.github/actions/composer/determine-cache-directory@1.8.0"
+ uses: "ergebnis/.github/actions/composer/determine-cache-directory@1.9.3"
- name: "Cache dependencies installed with composer"
- uses: "actions/cache@v3.0.8"
+ uses: "actions/cache@v4.2.4"
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
restore-keys: "composer-${{ matrix.dependencies }}-"
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
- uses: "ergebnis/.github/actions/composer/install@1.8.0"
+ uses: "ergebnis/.github/actions/composer/install@1.9.3"
with:
dependencies: "${{ matrix.dependencies }}"
```
@@ -254,7 +255,7 @@ jobs:
steps:
- name: "Assign @ergebnis-bot"
- uses: "ergebnis/.github/actions/github/pull-request/add-assignee@1.8.0"
+ uses: "ergebnis/.github/actions/github/pull-request/add-assignee@1.9.3"
with:
assignee: "ergebnis-bot"
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
@@ -298,7 +299,7 @@ jobs:
steps:
- name: "Add labels based on branch name"
- uses: "ergebnis/.github/actions/github/pull-request/add-label-based-on-branch-name@1.8.0"
+ uses: "ergebnis/.github/actions/github/pull-request/add-label-based-on-branch-name@1.9.3"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
```
@@ -352,7 +353,7 @@ jobs:
steps:
- name: "Approve pull request"
- uses: "ergebnis/.github/actions/github/pull-request/approve@1.8.0"
+ uses: "ergebnis/.github/actions/github/pull-request/approve@1.9.3"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
```
@@ -404,7 +405,7 @@ jobs:
steps:
- name: "Merge pull request"
- uses: "ergebnis/.github/actions/github/pull-request/merge@1.8.0"
+ uses: "ergebnis/.github/actions/github/pull-request/merge@1.9.3"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
```
@@ -457,7 +458,7 @@ jobs:
steps:
- name: "Request review from @ergebnis-bot"
- uses: "ergebnis/.github/actions/github/pull-request/request-review@1.8.0"
+ uses: "ergebnis/.github/actions/github/pull-request/request-review@1.9.3"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
reviewer: "ergebnis-bot"
@@ -502,7 +503,7 @@ jobs:
steps:
- name: "Create release"
- uses: "ergebnis/.github/actions/github/release/create@1.8.0"
+ uses: "ergebnis/.github/actions/github/release/create@1.9.3"
with:
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
```
@@ -511,6 +512,7 @@ For details, see [`actions/github/release/create/action.yaml`](actions/github/re
#### Inputs
+- `draft`, optional: Whether to create a draft or a published release.
- `github-token`, required: The GitHub token of a user with permission to create a release.
#### Outputs
@@ -524,6 +526,50 @@ none
- The `RELEASE_ID` environment variable contains the release identifier.
- The `RELEASE_TAG` environment variable contains the release tag.
- The `RELEASE_UPLOAD_URL` environment variable contains the URL for uploading release assets.
+-
+### `ergebnis/.github/actions/github/release/publish`
+
+This action publishes a release.
+
+This is useful when you want to publish a release created in draft mode.
+
+```yaml
+
+name: "Release"
+
+on:
+ push:
+ tags:
+ - "**"
+
+jobs:
+ release:
+ name: "Release"
+
+ runs-on: "ubuntu-latest"
+
+ steps:
+ - name: "Publish release"
+ uses: "ergebnis/.github/actions/github/release/publish@1.10.0"
+ with:
+ release-id: "9001"
+ github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}"
+```
+
+For details, see [`actions/github/release/publish/action.yaml`](actions/github/release/publish/action.yaml).
+
+#### Inputs
+
+- `github-token`, required: The GitHub token of a user with permission to create a release.
+- `release-id`, required: The release identifier.
+
+#### Outputs
+
+none
+
+#### Side Effects
+
+- The release identified by the release identifier is published by the user who owns the GitHub token specified with the `github-token` input.
### `ergebnis/.github/actions/oh-dear/check/request-run`
@@ -545,12 +591,12 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v3.0.2"
+ uses: "actions/checkout@v5.0.0"
with:
fetch-depth: 50
- name: "Request broken links check on ohdear.app"
- uses: "ergebnis/.github/actions/oh-dear/maintenance-period/start@1.8.0"
+ uses: "ergebnis/.github/actions/oh-dear/maintenance-period/start@1.9.3"
with:
oh-dear-api-token: "${{ secrets.OH_DEAR_API_TOKEN }}"
oh-dear-check-id: "${{ secrets.OH_DEAR_BROKEN_LINKS_CHECK_ID }}"
@@ -591,12 +637,12 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v3.0.2"
+ uses: "actions/checkout@v5.0.0"
with:
fetch-depth: 50
- name: "Start maintenance period on ohdear.app"
- uses: "ergebnis/.github/actions/oh-dear/maintenance-period/start@1.8.0"
+ uses: "ergebnis/.github/actions/oh-dear/maintenance-period/start@1.9.3"
with:
oh-dear-api-token: "${{ secrets.OH_DEAR_API_TOKEN }}"
oh-dear-site-id: "${{ secrets.OH_DEAR_SITE_ID }}"
@@ -637,12 +683,12 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v3.0.2"
+ uses: "actions/checkout@v5.0.0"
with:
fetch-depth: 50
- name: "Stop maintenance period on ohdear.app"
- uses: "ergebnis/.github/actions/oh-dear/maintenance-period/stop@1.8.0"
+ uses: "ergebnis/.github/actions/oh-dear/maintenance-period/stop@1.9.3"
with:
oh-dear-api-token: "${{ secrets.OH_DEAR_API_TOKEN }}"
oh-dear-site-id: "${{ secrets.OH_DEAR_SITE_ID }}"
@@ -684,17 +730,17 @@ jobs:
steps:
- name: "Checkout"
- uses: "actions/checkout@v3.0.2"
+ uses: "actions/checkout@v5.0.0"
- name: "Set up PHP"
- uses: "shivammathur/setup-php@2.21.2"
+ uses: "shivammathur/setup-php@2.35.4"
with:
coverage: "none"
php-version: "8.1"
tools: "phive"
- name: "Install dependencies with phive"
- uses: "ergebnis/.github/actions/phive/install@1.8.0"
+ uses: "ergebnis/.github/actions/phive/install@1.9.3"
with:
trust-gpg-keys: "0x033E5F8D801A2F8D,0x2A8299CE842DD38C"
```
@@ -732,7 +778,7 @@ The maintainers of this project ask contributors to follow the [code of conduct]
The maintainers of this project provide limited support.
-You can support the maintenance of this project by [sponsoring @localheinz](https://github.com/sponsors/localheinz) or [requesting an invoice for services related to this project](mailto:am@localheinz.com?subject=ergebnis/.github:%20Requesting%20invoice%20for%20services).
+You can support the maintenance of this project by [sponsoring @ergebnis](https://github.com/sponsors/ergebnis).
## Security Policy
diff --git a/actions/github/pull-request/add-assignee/action.yaml b/actions/github/pull-request/add-assignee/action.yaml
index 2836deb..c3c1599 100644
--- a/actions/github/pull-request/add-assignee/action.yaml
+++ b/actions/github/pull-request/add-assignee/action.yaml
@@ -22,7 +22,7 @@ runs:
steps:
- name: "Determine pull request number"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
with:
github-token: "${{ inputs.github-token }}"
script: |
@@ -44,7 +44,7 @@ runs:
core.setFailed(`Unable to determine the pull request number for event "${context.eventName}"`);
- name: "Add assignee to pull request"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
env:
ASSIGNEE: "${{ inputs.assignee }}"
with:
diff --git a/actions/github/pull-request/add-label-based-on-branch-name/action.yaml b/actions/github/pull-request/add-label-based-on-branch-name/action.yaml
index e753ad1..c19114c 100644
--- a/actions/github/pull-request/add-label-based-on-branch-name/action.yaml
+++ b/actions/github/pull-request/add-label-based-on-branch-name/action.yaml
@@ -19,7 +19,7 @@ runs:
steps:
- name: "Determine pull request number"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
with:
github-token: "${{ inputs.github-token }}"
script: |
@@ -43,7 +43,7 @@ runs:
core.setFailed(`Unable to determine the pull request number and branch name for event "${context.eventName}"`);
- name: "Add label to pull request based on branch name"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
with:
github-token: "${{ inputs.github-token }}"
script: |
diff --git a/actions/github/pull-request/approve/action.yaml b/actions/github/pull-request/approve/action.yaml
index 960d917..1706036 100644
--- a/actions/github/pull-request/approve/action.yaml
+++ b/actions/github/pull-request/approve/action.yaml
@@ -19,7 +19,7 @@ runs:
steps:
- name: "Determine pull request number"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
with:
github-token: "${{ inputs.github-token }}"
script: |
@@ -41,7 +41,7 @@ runs:
core.setFailed(`Unable to determine the pull request number for event "${context.eventName}"`);
- name: "Approve pull request"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
with:
github-token: "${{ inputs.github-token }}"
script: |
diff --git a/actions/github/pull-request/request-review/action.yaml b/actions/github/pull-request/request-review/action.yaml
index c3c5dbb..e134fb8 100644
--- a/actions/github/pull-request/request-review/action.yaml
+++ b/actions/github/pull-request/request-review/action.yaml
@@ -22,7 +22,7 @@ runs:
steps:
- name: "Determine pull request number"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
with:
github-token: "${{ inputs.github-token }}"
script: |
@@ -44,7 +44,7 @@ runs:
core.setFailed(`Unable to determine the pull request number for event "${context.eventName}"`);
- name: "Request reviewer"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
env:
REVIEWER: "${{ inputs.reviewer }}"
with:
diff --git a/actions/github/release/create/action.yaml b/actions/github/release/create/action.yaml
index 5898cf0..1c90e25 100644
--- a/actions/github/release/create/action.yaml
+++ b/actions/github/release/create/action.yaml
@@ -9,6 +9,10 @@ name: "Create a release"
description: "Creates a release"
inputs:
+ draft:
+ description: "Whether to create a draft or a published release"
+ required: false
+ default: "false"
github-token:
description: "GitHub token of a user with permission to create a release"
required: true
@@ -23,7 +27,7 @@ runs:
shell: "bash"
- name: "Create release"
- uses: "actions/github-script@v7.0.1"
+ uses: "actions/github-script@v8.0.0"
with:
github-token: "${{ inputs.github-token }}"
script: |
@@ -35,7 +39,7 @@ runs:
try {
const response = await github.rest.repos.createRelease({
- draft: false,
+ draft: ${{ fromJSON(inputs.draft) }},
generate_release_notes: true,
name: process.env.RELEASE_TAG,
owner: context.repo.owner,
diff --git a/actions/github/release/publish/action.yaml b/actions/github/release/publish/action.yaml
new file mode 100644
index 0000000..f9615b3
--- /dev/null
+++ b/actions/github/release/publish/action.yaml
@@ -0,0 +1,37 @@
+# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
+# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs
+# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions
+# https://docs.github.com/en/rest/releases/releases#update-a-release
+# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
+
+name: "Publish a release"
+
+description: "Publishes a release"
+
+inputs:
+ github-token:
+ description: "GitHub token of a user with permission to publish a release"
+ required: true
+ release-id:
+ description: "The release identifier"
+ required: true
+
+runs:
+ using: "composite"
+
+ steps:
+ - name: "Publish release"
+ uses: "actions/github-script@v7.0.1"
+ with:
+ github-token: "${{ inputs.github-token }}"
+ script: |
+ try {
+ const response = await github.rest.repos.updateRelease({
+ draft: false,
+ owner: context.repo.owner,
+ release_id: ${{ inputs.release-id }},
+ repo: context.repo.repo,
+ });
+ } catch (error) {
+ core.setFailed(error.message);
+ }
diff --git a/actions/phive/install/action.yaml b/actions/phive/install/action.yaml
index 00dc4a8..2261c0c 100644
--- a/actions/phive/install/action.yaml
+++ b/actions/phive/install/action.yaml
@@ -26,7 +26,7 @@ runs:
shell: "bash"
- name: "Cache dependencies installed with phive"
- uses: "actions/cache@v4.0.2"
+ uses: "actions/cache@v4.3.0"
with:
path: "${{ inputs.phive-home }}"
key: "phive-${{ hashFiles('**/phars.xml') }}"
diff --git a/profile/README.md b/profile/README.md
index 75330aa..c4c419c 100644
--- a/profile/README.md
+++ b/profile/README.md
@@ -1,5 +1 @@
:wave:
-
-Do you like what you see?
-
-[Sponsor @localheinz](https://github.com/sponsors/localheinz), who maintains these fine packages!