Skip to content

Commit

Permalink
Run deployments on more events for testing
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Nov 28, 2024
1 parent 46492eb commit 2b7cb43
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/actions/finalize/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: "Finalize custom"
description: "Custom finalize step to run during a pull request"
runs:
using: "composite"
steps:
- name: Print environment
shell: bash
run: |
echo "Running in environment: ${environment}"
4 changes: 4 additions & 0 deletions .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ jobs:
{
"environment": ["test"]
}
custom_finalize_matrix: >
{
"environment": ["test"]
}
docker_images:
ghcr.io/balena-io-experimental/deployable
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@ name: Deploy

on:
pull_request:
branches: [main, master]
types: [opened, synchronize, closed]
branches: [main, master, develop]
# allow external contributions to use secrets within trusted code
pull_request_target:
types: [opened, synchronize, closed]
branches: [main, master, develop]
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
Expand Down

0 comments on commit 2b7cb43

Please sign in to comment.