From bd9fbd1ed3f933b82c900ecb56e3835989315e06 Mon Sep 17 00:00:00 2001 From: ooshlablu Date: Fri, 27 Jan 2023 21:02:40 -0500 Subject: [PATCH] Fixed cron trigger, and a few cosmetic changes --- .github/workflows/build_and_release.yml | 2 +- .github/workflows/linux.yml | 22 ++++++++-------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 8eb4918..8c06775 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -89,7 +89,7 @@ jobs: # Pull in the AppImage build workflow AppImage_Package: - name: Build the AppImage package + name: Build the AppImage uses: ./.github/workflows/appimage.yml with: package_complete_version: ${{ needs.determine_version.outputs.complete_version }} diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 3f50ab9..6383675 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -19,11 +19,11 @@ env: jobs: # Decide if we need to build the containers on this run - determine_docker_version: + determine_docker_build: name: Determine whether to build the containers or not runs-on: ubuntu-latest outputs: - build_docker_containers: ${{ steps.version.outputs.build_docker_containers }} + build_docker_containers: ${{ steps.docker_check.outputs.build_docker_containers }} steps: - name: Checkout id: checkout @@ -31,8 +31,8 @@ jobs: with: fetch-depth: 0 - - name: Determine version - id: version + - name: Build docker check + id: docker_check run: | # Only run the container builds when something in the docker folder or # this workflow has changed from master, or if it was cron triggered @@ -47,7 +47,7 @@ jobs: name: Build the Linux packages runs-on: ubuntu-latest needs: - - determine_docker_version + - determine_docker_build strategy: matrix: include: @@ -85,7 +85,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build ${{ matrix.os }} ${{ matrix.version }} Container - if: ${{ needs.determine_docker_version.outputs.build_docker_containers == 'true' }} + if: ${{ needs.determine_docker_build.outputs.build_docker_containers == 'true' }} uses: docker/build-push-action@v3 with: context: docker/ @@ -95,11 +95,6 @@ jobs: build-args: OS_VERSION=${{ matrix.version }} - name: Build package - # Don't build the packages if triggered by cron because it will not - # have the correct inputs required to construct the package names correctly. - # The cron schedule is really for making sure the docker containers are - # up-to-date anyway. - if: ${{ github.event_name != 'schedule' }} run: | # Pull in our common build functions . .github/workflows/build_functions.sh @@ -116,7 +111,7 @@ jobs: #fi # Only pull the container if it wasn't built locally - if [ '${{ needs.determine_docker_version.outputs.build_docker_containers }}' = 'false' ]; then + if [ '${{ needs.determine_docker_build.outputs.build_docker_containers }}' = 'false' ]; then docker pull ${{ env.CONTAINER_NAME }} fi @@ -128,7 +123,6 @@ jobs: package_name "$(pwd)/build" "Composer*64.*" "${PACKAGE_VERSION}" "${{ matrix.os }}" "${{ matrix.version }}" #- name: Run unit tests - # if: ${{ github.event_name != 'schedule' }} # run: | # # Run the containers with the script for each testing suite # docker run --rm -v $(pwd):/github_actions_build/ ${{ env.CONTAINER_NAME }} ./run_tests.sh @@ -166,7 +160,7 @@ jobs: uses: docker/build-push-action@v3 # Containers can't be pushed during PRs because of the way permissions # are delegated to secrets.GITHUB_TOKEN - if: ${{ needs.determine_docker_version.outputs.build_docker_containers == 'true' && github.event_name != 'pull_request' }} + if: ${{ needs.determine_docker_build.outputs.build_docker_containers == 'true' && github.event_name != 'pull_request' }} with: context: docker/ file: ./docker/Dockerfile.${{ matrix.os }}