Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy-readme action #2

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: test
name: Lint and test Helm charts

on:
pull_request:
paths:
- "charts/**"
branches: ["*"]

jobs:
lint-chart:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/copy-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Copy README to gh-pages
on:
push:
branches:
- "main"
paths:
- "README.md"
jobs:
copy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
cp -f README.md ${{ runner.temp }}/README.md
- uses: actions/checkout@v4
with:
ref: gh-pages
- run: |
cp -f ${{ runner.temp }}/README.md .
git config user.name "FiberBot"
git config user.email "fiberbot@users.noreply.github.com"
git add README.md
git commit --signoff -m "copy README from main"
git push
Loading