Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ecd2cc7012 | |||
| 4904953564 | |||
| 1c67cd0ddc | |||
| abdb30b0e3 | |||
| 70255dc53c |
@@ -5,7 +5,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- release
|
- release
|
||||||
|
|
||||||
workflow_dispatch:
|
repository_dispatch:
|
||||||
|
types: [directus_update]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -29,14 +30,15 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Cache Astro Build Cache
|
- name: Cache Astro Build
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.astro
|
.astro
|
||||||
node_modules/.vite
|
node_modules/.vite
|
||||||
key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}
|
key: ${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-${{ github.event_name == 'repository_dispatch' && github.run_id || 'static' }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
|
${{ runner.os }}-astro-${{ hashFiles('**/*.astro', 'astro.config.mjs') }}-
|
||||||
${{ runner.os }}-astro-
|
${{ runner.os }}-astro-
|
||||||
|
|
||||||
- name: Lint Code
|
- name: Lint Code
|
||||||
@@ -100,6 +102,9 @@ jobs:
|
|||||||
semantic-release:
|
semantic-release:
|
||||||
needs: [ build, guarddog ]
|
needs: [ build, guarddog ]
|
||||||
runs-on: ubuntu-js
|
runs-on: ubuntu-js
|
||||||
|
if: |
|
||||||
|
github.event_name != 'repository_dispatch' ||
|
||||||
|
github.event.client_payload.data.published == true
|
||||||
outputs:
|
outputs:
|
||||||
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
|
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
|
||||||
new-release-version: ${{ steps.semantic.outputs.new-release-version }}
|
new-release-version: ${{ steps.semantic.outputs.new-release-version }}
|
||||||
@@ -111,6 +116,13 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
|
|
||||||
|
- name: Prepare Content Patch
|
||||||
|
if: github.event_name == 'repository_dispatch'
|
||||||
|
run: |
|
||||||
|
git config user.name "gitea-bot"
|
||||||
|
git config user.email "gitea-bot@alexlebens.net"
|
||||||
|
git commit --allow-empty -m "fix(content): directus published update [skip ci]"
|
||||||
|
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
@@ -239,7 +251,7 @@ jobs:
|
|||||||
runs-on: ubuntu-js
|
runs-on: ubuntu-js
|
||||||
needs: [ semantic-release, release-harbor ]
|
needs: [ semantic-release, release-harbor ]
|
||||||
if: |
|
if: |
|
||||||
always() &&
|
always() &&
|
||||||
needs.semantic-release.outputs.new-release-published == 'true'
|
needs.semantic-release.outputs.new-release-published == 'true'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
Reference in New Issue
Block a user