diff --git a/.github/workflows/del.yml b/.github/workflows/del.yml index 8bb8e2a..5b2439e 100755 --- a/.github/workflows/del.yml +++ b/.github/workflows/del.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de457fb..ce708e3 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file