Test4Updates #1378
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Test4Updates | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the develop branch | |
on: | |
schedule: | |
# UTC, like a crontab entry. Below is 10:45 (45 minutes past 9pm) and 22:39 utc, | |
- cron: '45 10,22 * * *' | |
# workflow_dispatch | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows | |
# 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 contails deprecated use of nodejs 12 ?? | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libQtPas | |
path: result.text | |
#${{ env.SOURCE }}/result.text |