Skip to content

Commit

Permalink
chore: test composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
hongaar committed Jun 2, 2023
1 parent 6bffaee commit 22b3e22
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/reload-moker-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v3
- uses: hongaar/moker@v1
- uses: hongaar/moker@main
# - uses: hongaar/moker@v1
- uses: peter-evans/create-pull-request@v5
with:
title: "chore: reload moker plugins"
body: |
Automated changes by [moker](https://github.com/hongaar/moker) GitHub action
*🤖 Automated changes by [moker](https://github.com/hongaar/moker)*
Please carefully review the changes, some plugins may override your changes.
token: ${{ secrets.GH_PAT }}
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ repository:
- `GH_PAT`: a GitHub token with read/write access to your repository
- `NPM_TOKEN`: an NPM token with publish access to your packages

If you have the `dependabot` plugin installed, this will also setup a
`dependabot-automerge` workflow which enables auto-merge (squash) on dependabot
PRs. You need to enable _Allow auto-merge_ in the GitHub repository settings and
apply _Branch protection rules_ for the main branch.
If you have the `dependabot` plugin installed, this will also setup two
additional workflows. A `dependabot-automerge` workflow which enables auto-merge
(squash) on dependabot PRs. You need to enable _Allow auto-merge_ in the GitHub
repository settings and apply _Branch protection rules_ for the main branch.

> **Note**: If you enabled _Require approvals_ in the branch protection rules,
> this won't automatically approve the PR. You will need to add an additional
Expand All @@ -289,6 +289,10 @@ apply _Branch protection rules_ for the main branch.
> env:
> ```
A `reload-moker-plugins` workflow is added to reload the moker plugins and
create a pull request with changes made by moker whenever dependencies are
updated by dependabot.
> 🤓 _Default_: The workflows will use the `main` branch by default, but it is
> trivial to change this.
Expand Down
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: moker
name: reload-moker-plugins
author: Joram van den Boezem
description: Reload moker plugins
runs:
using: node16
main: packages/action/dist/index.cjs
using: "composite"
steps:
- run: yarn dlx moker reload
branding:
icon: refresh-cw
color: green

0 comments on commit 22b3e22

Please sign in to comment.