Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions .github/workflows/packages_publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ on:
type: string
description: Package file filter pattern
required: false
workflow_call:
inputs:
tag:
type: string
default: daily
required: false
filter:
type: string
default: ''
required: false
branch:
type: string
default: ''
required: false

permissions:
contents: read
Expand All @@ -44,14 +30,12 @@ jobs:
build:
name: Build packages
runs-on: ubuntu-latest
environment: ${{ (inputs.tag == 'stable' || (github.event_name == 'workflow_dispatch' && !contains(github.workflow_ref, '/.github/workflows/packages_publishing_scheduler.yml@'))) && 'packages-publishing' || 'packages-publishing-automation' }}
environment: ${{ (inputs.tag == 'stable' && 'packages-publishing-stable') || 'packages-publishing-daily' }}
outputs:
packages: ${{ steps.filter.outputs.packages }}
steps:
- name: Get sources
uses: actions/checkout@v6
with:
ref: ${{ inputs.branch || github.ref }}

- name: Set up nodejs
uses: actions/setup-node@v6
Comment thread
r-farkhutdinov marked this conversation as resolved.
Expand Down Expand Up @@ -174,8 +158,6 @@ jobs:
steps:
- name: Get sources
uses: actions/checkout@v6
with:
ref: ${{ inputs.branch || github.ref }}

- name: Download packages
uses: actions/download-artifact@v8
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/packages_publishing_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ on:
schedule:
- cron: '00 18 * * *'

permissions:
contents: read
packages: write

jobs:
publish:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
branch: ['24_2', '25_1', '25_2', '26_1', 'main']

name: Run Packages Publishing workflow
uses: ./.github/workflows/packages_publishing.yml
with:
tag: daily
branch: ${{ matrix.branch }}
secrets: inherit
steps:
- name: Get sources
uses: actions/checkout@v6
with:
sparse-checkout: README.md

- name: Publish Packages (${{ matrix.branch }})
run: |
gh workflow run packages_publishing.yml -f tag=daily --ref ${{ matrix.branch }}
Loading