Skip to content

Commit

Permalink
Sync README to gh-pages
Browse files Browse the repository at this point in the history
- updated README to use absolute URLs
- add workflow to sync README.md on changes to gh-pages branch

Taken from prometheus-community/helm-charts#41

Signed-off-by: Torsten Walter <mail@torstenwalter.de>
  • Loading branch information
torstenwalter committed Sep 10, 2020
1 parent 8035d62 commit a026c7b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/sync-readme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- 'main'
paths:
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
cp -f README.md ${{ runner.temp }}/README.md
- uses: actions/checkout@v2
with:
ref: gh-pages
- run: |
cp -f ${{ runner.temp }}/README.md .
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add README.md
git commit --signoff -m "Sync README from main"
git push
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ helm repo add jenkinsci https://charts.jenkins.io

You can then run `helm search repo jenkinsci` to see the charts.

Chart documentation is available in [jenkins directory](./charts/jenkins/README.md).
<!-- Keep full URL links to repo files because this README syncs from main to gh-pages. -->
Chart documentation is available in [jenkins directory](https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/README.md).

## Contributing

We'd love to have you contribute! Please refer to our [contribution guidelines](CONTRIBUTING.md) for details.
<!-- Keep full URL links to repo files because this README syncs from main to gh-pages. -->
We'd love to have you contribute! Please refer to our [contribution guidelines](https://github.com/jenkinsci/helm-charts/blob/main/CONTRIBUTING.md) for details.

## License

[Apache 2.0 License](./LICENSE).
<!-- Keep full URL links to repo files because this README syncs from main to gh-pages. -->
[Apache 2.0 License](https://github.com/jenkinsci/helm-charts/blob/main/LICENSE).

0 comments on commit a026c7b

Please sign in to comment.