-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.04 KB
/
delete-prereleases.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: delete-prereleases
on:
push:
branches:
- "**"
workflow_call:
inputs:
module_name_pattern:
description: The module name pattern to delete for, e.g. "*" or "resource-group/*"
type: string
required: true
default: "resource-group/*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: dev-drprasad/[email protected]
with:
delete_prerelease_only: true
delete_tags: true
delete_tag_pattern: ${{ github.event.inputs.module_name_pattern }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/checkout@v4
# with:
# fetch-tags: true
# fetch-depth: 0
# - name: Configure git
# run: git config --global url."https://x-oauth-basic:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository_owner }}".insteadOf https://github.com/${{ github.repository_owner }}
# - name: Delete unstable tags
# run: git push -d origin $(git tag -l "*-unstable")