mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Update sponsors action (#5887)
- Inspired by translations github workflow
This commit is contained in:
parent
6276a00d20
commit
7350f9887e
21
.github/workflows/sponsors.yml
vendored
21
.github/workflows/sponsors.yml
vendored
@ -7,18 +7,27 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout 🛎️
|
- name: Checkout Code
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||||
|
|
||||||
- name: Generate Sponsors 💖
|
- name: Generate Sponsors
|
||||||
uses: JamesIves/github-sponsors-readme-action@a2d75a8d58b117b19777a910e284ccb082aaf117
|
uses: JamesIves/github-sponsors-readme-action@a2d75a8d58b117b19777a910e284ccb082aaf117
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.INVENTREE_SPONSORS_TOKEN }}
|
token: ${{ secrets.INVENTREE_SPONSORS_TOKEN }}
|
||||||
file: 'README.md'
|
file: 'README.md'
|
||||||
organization: true
|
organization: true
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages 🚀
|
- name: Commit files
|
||||||
uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc
|
run: |
|
||||||
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git config --local user.name "github-actions[bot]"
|
||||||
|
git checkout -b sponsors
|
||||||
|
git add README.md
|
||||||
|
git commit -m "updated sponsors"
|
||||||
|
|
||||||
|
- name: Push Changes
|
||||||
|
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
|
||||||
with:
|
with:
|
||||||
branch: master
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
folder: '.'
|
branch: sponsors
|
||||||
|
force: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user