Skip to content

Commit

Permalink
chore: correct workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 25, 2023
1 parent eb3f89c commit f91b7fc
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 27 deletions.
Empty file removed .github/workflows/ci.yml
Empty file.
39 changes: 12 additions & 27 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
name: Organization Contributors

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
contributors:
permissions:
contents: write
release-please:
runs-on: ubuntu-latest
name: Update contributors
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.MAINTAINER_TOKEN }}

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'

- name: Generate Styles
run: ./scripts/generate.sh

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
- uses: google-github-actions/release-please-action@v4
with:
commit_message: "style: update styles"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
file_pattern: 'styles'
command: manifest
33 changes: 33 additions & 0 deletions .github/workflows/styles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Styles

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
contributors:
permissions:
contents: write
runs-on: ubuntu-latest
name: Update styles
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.MAINTAINER_TOKEN }}

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'

- name: Update Styles
run: ./scripts/generate.sh

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: update styles"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
file_pattern: 'styles'

0 comments on commit f91b7fc

Please sign in to comment.