adjust: ".github/workflows/*"

This commit is contained in:
sheynsw
2023-03-22 16:05:47 +07:00
parent c58e72c1fc
commit b9b6ea7056
2 changed files with 14 additions and 5 deletions

View File

@@ -1,15 +1,17 @@
name: Delete old workflow runs
description: This workflow deletes old workflow runs to maintain a clean workflow history.
on:
workflow_dispatch:
jobs:
del_runs:
delete_old_runs:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
if: github.ref == 'refs/heads/main'
with:
token: ${{ github.token }}
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 0

View File

@@ -1,4 +1,5 @@
name: release
# description:
on:
push:
@@ -15,9 +16,15 @@ jobs:
- name: run build.sh
run: sh build.sh
- name: upload release
- name: Upload Release Asset
uses: actions/upload-artifact@v2
with:
name: box_for_magisk
path: box_for_magisk-v*.zip
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: box_for_magisk-v*.zip
generate_release_notes: true
generate_release_notes: true