-
-
Notifications
You must be signed in to change notification settings - Fork 26
46 lines (40 loc) · 1.24 KB
/
artifacts.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
---
name: Generate Scripts
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- .vscode/*
pull_request:
paths-ignore:
- .vscode/*
# Cancel existing runs on new commits to a branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
INSTALLER_FILE: "install_dba-multitool.sql"
jobs:
bundle:
runs-on: ubuntu-latest
name: Generate installer
defaults:
run:
shell: pwsh
steps:
- name: Check out code
uses: actions/checkout@v4.1.3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Create bundled installer script
run: |
Get-ChildItem -Path $Env:GITHUB_WORKSPACE -Filter "sp_*.sql" | Get-Content | Out-File $Env:INSTALLER_FILE -Encoding ascii
Get-ChildItem -Path $Env:GITHUB_WORKSPACE -Filter $Env:INSTALLER_FILE | Select-Object -Property Name, Size, LastWriteTime, User
- name: Commit bundled installer script
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: Updated bundled installer [skip ci]
file_pattern: ${{ env.INSTALLER_FILE }}