-
Notifications
You must be signed in to change notification settings - Fork 5
executable file
·64 lines (53 loc) · 1.73 KB
/
test4update.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test4Updates Qt6
# Controls when the action will run. Triggers the workflow on cron like time
on:
schedule:
# This is UTC in crontab format, minutes hours etc....
- cron: '35 10 * * *'
# - cron: '35 10,22 * * *' # no, twice a day is silly, I cannot respond that quickly.
#workflow_dispatch
# issues:
# types: [opened, edited] # only do edited so we dont retrigger ourself
# types: [edited]
env:
SOURCE: 'libQtPas_src'
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-20.04
name: 'Linux 64'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
path: '${{ env.SOURCE }}'
- name: Test if Qt updated
id: test_updated
run: ${{ env.SOURCE }}/cbindings/package/scripts/check4update.bash
# run: |
# This will, if the above script returned an error, assume we need to raise
# an issue because the versions no longer match
- name: create an issue
uses: dacbd/create-issue-action@main
if: ${{ failure() }}
with:
token: ${{ github.token }}
title: Update Required
body: This library needs to be updated
- name: decide
if: ${{ failure() }}
# apparently next line contains deprecated use of nodejs 12 ??
uses: actions/upload-artifact@v2.2.2
with:
name: libQtPas
path: result.text
#${{ env.SOURCE }}/result.text