-
Notifications
You must be signed in to change notification settings - Fork 1.6k
50 lines (42 loc) · 1.54 KB
/
install-sh.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
49
50
name: Update install.sh Suite
on:
workflow_call:
workflow_dispatch:
permissions:
statuses: write
jobs:
test-install:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: (PR comment) Get PR branch
if: ${{ github.event_name == 'issue_comment' }}
uses: xt0rted/pull-request-comment-branch@v3
id: comment-branch
- name: (PR comment) Set latest commit status as pending
if: ${{ github.event_name == 'issue_comment' }}
uses: myrotvorets/set-commit-status-action@v2.0.1
with:
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
context: Update install.sh Suite
status: pending
- name: (PR comment) Checkout PR branch
if: ${{ github.event_name == 'issue_comment' }}
uses: actions/checkout@v4
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
- name: Checkout branch
if: ${{ github.event_name != 'issue_comment' }}
uses: actions/checkout@v4
- run: sudo apt-get install --yes bc
- run: bash distribution/install.sh -- -y
- run: ~/.vector/bin/vector --version
- name: (PR comment) Set latest commit status as ${{ job.status }}
if: github.event_name == 'issue_comment'
uses: myrotvorets/set-commit-status-action@v2.0.1
with:
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
context: Update install.sh Suite
status: ${{ job.status }}