Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Merge pull request #2524 from JustEnoughLinuxOS/dev #178

Merge pull request #2524 from JustEnoughLinuxOS/dev

Merge pull request #2524 from JustEnoughLinuxOS/dev #178

Workflow file for this run

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present 351ELEC
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
### Based on work by @pkegg
name: release-main
on:
push:
paths-ignore:
- 'documentation/**'
- '.github/**'
- '*.md'
- 'Dockerfile'
- '.dockerignore'
- '.gitignore'
- 'licenses/**'
- 'tools/**'
branches:
- main
workflow_dispatch:
env:
BRANCH: main
jobs:
launch-main-release-if-needed:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
name: checkout
with:
clean: false
fetch-depth: 0
ref: "${{env.BRANCH}}"
- name: only run on the primary repository
if: ${{ !startsWith(github.repository_owner, 'JustEnoughLinuxOS') }}
run: exit 0
- name: repository full name
id: full_name
run: |
echo "full_name=$(git config --get remote.origin.url | sed 's|^.*github.com/||g' | sed 's/.git$//g')" >> $GITHUB_OUTPUT
- name: Get date for artifacts
id: date
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS }}
repository: ${{ steps.full_name.outputs.full_name }}
event-type: release-main
client-payload: |
{
"branch" : "${{ env.BRANCH }}",
"release_tag" : "${{steps.date.outputs.date}}"
}