-
-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (45 loc) · 1.32 KB
/
tag.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
37
38
39
40
41
42
43
44
45
46
47
48
name: Create Tag
on:
workflow_dispatch:
inputs:
revision:
description: 'The tag name'
required: true
concurrency:
group: tag
cancel-in-progress: false
jobs:
create-tag:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
actions: write
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Update versions in files
run: |
pdm version ${{ inputs.revision }}
- name: Commit version files to main, and tag
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: ${{ inputs.revision }}
tagging_message: ${{ inputs.revision }}
- name: Dispatch release workflow
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: 'apastel',
repo: 'ytmusic-deleter',
workflow_id: 'release.yml',
ref: '${{ inputs.revision }}'
})