-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): Add disable_checkout_action input (#12)
* feat(disable checkout): Add a boolean input for disabling checkout action * docs(readme): Add disable_checkout_action input description
- Loading branch information
1 parent
5036b19
commit 371c4bd
Showing
4 changed files
with
72 additions
and
1 deletion.
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,54 @@ | ||
name: Add-on with disabled checkout tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
schedule: | ||
- cron: '35 08 * * *' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
|
||
jobs: | ||
add-on-disable-checkout-test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ddev_version: [ stable ] | ||
add_on: ["JanoPL/ddev-kibana"] | ||
|
||
name: Add-on with disabled checkout tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Clone current repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Retrieve last tag of add-on | ||
run: | | ||
echo "ADD_ON_LAST_TAG=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/${{ matrix.add_on }}/releases/latest | grep -oP "\/tag\/\K(.*)$")" >> $GITHUB_ENV | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ matrix.add_on }} | ||
ref: ${{ env.ADD_ON_LAST_TAG }} | ||
path: tested-addon | ||
submodules: 'true' | ||
|
||
- name: Run DDEV test (${{ matrix.ddev_version }}) | ||
uses: ./ | ||
with: | ||
ddev_version: ${{ matrix.ddev_version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
addon_repository: ${{ matrix.add_on }} | ||
addon_ref: ${{ env.ADD_ON_LAST_TAG }} | ||
addon_path: tested-addon | ||
keepalive: false | ||
disable_checkout_action: true | ||
|
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