Added more branch triggers to build workflow #5
Workflow file for this run
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
name: 'build' | |
on: | |
push: | |
branches: | |
- main | |
- feature/* | |
- bug/* | |
paths-ignore: | |
- '*.md' | |
- '*.png' | |
pull_request: | |
branches: | |
- main | |
- feature/* | |
- bug/* | |
paths-ignore: | |
- '*.md' | |
- '*.png' | |
types: [opened, synchronize, reopened] # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: 'The reason for running the workflow.' | |
required: true | |
default: 'Manual run' | |
jobs: | |
build: | |
name: Build for ${{ matrix.platformName }} | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest, windows-latest, macos-latest] | |
include: | |
- platform: ubuntu-latest | |
platformName: Ubuntu | |
- platform: windows-latest | |
platformName: Windows | |
- platform: macos-latest | |
platformName: macOS | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Disabling shallow clone ensures all commits | |
# and tags are available at checkout. | |
fetch-depth: 0 | |
- name: Test Action Locally | |
id: action-tagger | |
# Not using xxx/xxx@main approach, because will load before everything. | |
uses: ./ | |
with: | |
enable-dry-run: true | |
set-latest-tag: true | |
github-token: ${{ github.token }} | |
- name: Display Action Outputs | |
run: | | |
echo "Action Tagger Outputs:" | |
echo "- [major_release]: ${{ steps.action-tagger.outputs.major_release }}" | |
echo "- [minor_release]: ${{ steps.action-tagger.outputs.minor_release }}" | |
echo "- [full_release]: ${{ steps.action-tagger.outputs.full_release }}" | |
echo "- [latest_tag]: ${{ steps.action-tagger.outputs.latest_tag }}" |