Skip to content

Commit

Permalink
on push always rebuild to update build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fedordikarev committed Jan 25, 2025
1 parent cdd1dc0 commit 17884e0
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/00_push-entry-point.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,10 @@ on:
- test-push-workflow

jobs:
check-permissions:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'run-no-ci') }}
uses: ./.github/workflows/90_helpers-check-permissions.yml
with:
github-event-name: ${{ github.event_name }}

projects-changed:
needs: [ check-permissions ]
name: Check source files for changes
runs-on: [ self-hosted, small ]
timeout-minutes: 2
outputs:
go-projects-changes: ${{ steps.go-projects-changes.outputs.changes }}

steps:
- uses: actions/checkout@v4
- name: Go Projects Changes
id: go-projects-changes
uses: dorny/paths-filter@1441771bbfdd59dcd748680ee64ebd8faab1a242 #v3
with:
token: ${{ github.token }}
filters: .github/file-filters/go-components.yaml
base: ${{ github.event_name != 'pull_request' && (github.event.merge_group.base_ref || github.ref_name) || '' }}
ref: ${{ github.event_name != 'pull_request' && (github.event.merge_group.head_ref || github.ref) || '' }}

build-go-projects:
needs: [ check-permissions, projects-changed ]
if: needs.projects-changed.outputs.go-projects-changes != '[]'
strategy:
matrix:
go-component: ${{ fromJson(needs.projects-changed.outputs.go-projects-changes) }}
go-component: [ 'gh-action', 'history-exporter' ]
uses: ./.github/workflows/50_go_build-one-component.yml
secrets: inherit
name: 'Golang: ${{ matrix.go-component }}'
Expand Down

0 comments on commit 17884e0

Please sign in to comment.