-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (43 loc) · 1.49 KB
/
version.yml
File metadata and controls
49 lines (43 loc) · 1.49 KB
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
49
name: Bump Version
on:
workflow_dispatch:
inputs:
bump:
required: true
description: "Bump Type (major, minor, patch)"
jobs:
version:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: "Checkout"
uses: actions/checkout@v6
- name: Get Token
id: get_workflow_token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
with:
app-id: ${{ secrets.CODEQL_FIELD_BOT_ID }}
private-key: ${{ secrets.CODEQL_FIELD_BOT_KEY }}
- name: "Bump Version"
env:
GH_TOKEN: ${{ github.token }}
run: |
pip install ghastoolkit
python ./.github/scripts/codeql.py version \
--bump "${{ github.event.inputs.bump }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
title: "[Bot] Version Bump - ${{ github.event.inputs.repository }}"
body: "This PR was automatically generated to bump the version of IaC library and queries."
commit-message: "Bumping version of IaC library and queries."
branch: "auto-gen/version-${{ github.event.inputs.repository }}"
delete-branch: true
labels: |
version
assignees: geekmasher
reviewers: |
geekmasher
token: ${{ steps.get_workflow_token.outputs.token }}