forked from MaaAssistantArknights/MaaAssistantArknights
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v5.11.0-beta.2 (MaaAssistantArknights#11366)
- Loading branch information
Showing
118 changed files
with
14,134 additions
and
724 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
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,4 +1,5 @@ | ||
name: "Issue Checker" | ||
|
||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
optimize-png: | ||
# Skip workflow to prevent double consecutive runs | ||
# Skip workflow on PR merges | ||
if: ${{ github.event.head_commit.author.email != '41898282+github-actions[bot]@users.noreply.github.com' && !github.event.pull_request }} | ||
if: ${{ github.event.head_commit.author.email != '41898282+github-actions[bot]@users.noreply.github.com' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
|
@@ -29,6 +29,24 @@ jobs: | |
show-progress: false | ||
persist-credentials: false | ||
|
||
- name: Check for direct push | ||
id: check_push | ||
run: | | ||
pr_merge_status=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
"https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.after }}/pulls" | xargs) | ||
if [[ "$pr_merge_status" == "[ ]" ]]; then | ||
echo "Direct push detected. Proceeding..." | ||
echo "is_pr=False" >> $GITHUB_OUTPUT | ||
else | ||
echo "PR merge detected. Exiting." | ||
echo "is_pr=True" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Add cancelled status | ||
if: steps.check_push.outputs.is_pr == 'True' | ||
uses: andymckay/[email protected] | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
|
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,6 +1,8 @@ | ||
name: release-nightly-ota | ||
|
||
on: | ||
schedule: | ||
- cron: "0 22 * * *" # Runs daily at 22:00 UTC | ||
workflow_dispatch: | ||
inputs: | ||
release_body: | ||
|
@@ -11,15 +13,15 @@ on: | |
description: "Commit to build (git checkout)" | ||
type: string | ||
required: false | ||
limit: | ||
limit_maa: | ||
description: "Number of releases to fetch from MaaAssistantArknights" | ||
required: true | ||
default: "30" | ||
default: "10" | ||
type: number | ||
limit_2: | ||
limit_mr: | ||
description: "Number of releases to fetch from MaaRelease" | ||
required: true | ||
default: "30" | ||
default: "10" | ||
type: number | ||
|
||
jobs: | ||
|
@@ -47,6 +49,18 @@ jobs: | |
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check for changes in dev branch | ||
id: check_changes | ||
run: | | ||
if (git diff --quiet HEAD origin/${{ github.ref_name }}) { | ||
echo "No changes in dev branch. Cancelling workflow." | ||
echo "cancel_run=true" >> $GITHUB_ENV | ||
} | ||
- name: Stop if no changes | ||
if: env.cancel_run == 'true' | ||
uses: andymckay/[email protected] | ||
|
||
- name: Checkout ref | ||
run: | | ||
if ("${{ inputs.ref }}" -ne "") { | ||
|
@@ -217,16 +231,16 @@ jobs: | |
mkdir -pv build-ota && cd build-ota | ||
# Convert inputs to integers | ||
limit=${{ inputs.limit || 30 }} | ||
limit=${limit%.*} | ||
echo "Parsed limit: $limit" | ||
limit_maa=${{ inputs.limit_maa || 10 }} | ||
limit_maa=${limit_maa%.*} | ||
echo "Parsed limit_maa: $limit_maa" | ||
limit_2=${{ inputs.limit_2 || 30 }} | ||
limit_2=${limit_2%.*} | ||
echo "Parsed limit_2: $limit_2" | ||
limit_mr=${{ inputs.limit_mr || 10 }} | ||
limit_mr=${limit_mr%.*} | ||
echo "Parsed limit_mr: $limit_mr" | ||
gh release list --repo 'MaaAssistantArknights/MaaAssistantArknights' --limit $limit | tee ./release_maa.txt | ||
gh release list --repo "${{ github.repository_owner }}/MaaRelease" --limit $limit_2 | tee ./release_mr.txt | ||
gh release list --repo 'MaaAssistantArknights/MaaAssistantArknights' --limit $limit_maa | tee ./release_maa.txt | ||
gh release list --repo "${{ github.repository_owner }}/MaaRelease" --limit $limit_mr | tee ./release_mr.txt | ||
echo ${{ needs.build-win-nightly.outputs.tag }} > ./config | ||
cat ./release_maa.txt | awk '{ print $1 }' > ./tags_maa.txt | ||
|
File renamed without changes.
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
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 +1 @@ | ||
7521b526ee2a272d267ff9cb60651ab0e012b63f | ||
3587b57a3a7a657de770231f6f0136d7ecf866f2 |
Oops, something went wrong.