forked from ChrisTitusTech/winutil
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ChrisTitusTech:main' into Close-Issue-Action
- Loading branch information
Showing
24 changed files
with
806 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,40 @@ | ||
name: On release published | ||
name: Update update.mb on Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
changelog: | ||
name: Update changelog | ||
update-file: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
- uses: rhysd/changelog-from-release/action@v3 | ||
with: | ||
file: /docs/updates.md | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get latest release and update update.mb file | ||
run: | | ||
# Fetch the latest release using GitHub CLI | ||
latest_release=$(gh release view --json tagName,name,body --jq '{tag: .tagName, name: .name, body: .body}') | ||
# Extract details | ||
tag=$(echo "$latest_release" | jq -r '.tag') | ||
name=$(echo "$latest_release" | jq -r '.name') | ||
body=$(echo "$latest_release" | jq -r '.body') | ||
version_numeric=$(echo "$tag" | grep -o -E '[0-9.]+') | ||
# Append to update.mb | ||
echo "## $version_numeric" >> docs/update.mb | ||
echo "Release name: $name" >> docs/update.mb | ||
echo "Release body: $body" >> docs/update.mb | ||
echo "" >> docs/update.mb | ||
- name: Commit and Push Changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git add docs/update.mb | ||
git commit -m "Update update.mb with latest release" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ci | ||
name: GitHub Pages Deploy | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Generate Sponsors README | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 30 15 * * 0-6 | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
|
||
- name: Generate Sponsors 💖 | ||
uses: JamesIves/github-sponsors-readme-action@v1 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
file: 'README.md' | ||
|
||
- name: Deploy to GitHub Pages 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: main | ||
folder: '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.