adjust: ".github/workflows/*"
This commit is contained in:
8
.github/workflows/del.yml
vendored
8
.github/workflows/del.yml
vendored
@@ -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
|
||||
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user