Skip to content

Commit

Permalink
Build from dev when running scheduled builds
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Jun 10, 2023
1 parent 962077c commit 6a3dee7
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build-postcompiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
ref_type: 'tag'
workflow_dispatch:
# Allow triggering manually whenever it's useful.
inputs:
ref:
description: 'Branch/tag/commit to use'
required: true
type: string
default: 'dev'

permissions:
contents: read
Expand All @@ -32,8 +38,24 @@ jobs:
os: 'ubuntu-latest'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
# Build dev on schedule, since it's actually changing.
- name: Checkout Dev
uses: actions/checkout@v3
if: github.event_name == 'schedule'
with:
ref: dev
# Always build the exact tag that's pushed.
- name: Checkout Tag
uses: actions/checkout@v3
if: github.event_name == 'create'
with:
ref: ${{ github.event.ref }}
- name: Checkout Ref
uses: actions/checkout@v3
if: github.event_name == 'workflow_dispatch'
with:
ref: ${{ inputs.ref }}

- name: Set up Python ${{ matrix.python-version }}-${{ matrix.arch }}
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 6a3dee7

Please sign in to comment.