Skip to content
Closed
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
45 changes: 45 additions & 0 deletions .github/workflows/ai-deploy-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
###########################
###########################
## Deployment AI generation testing ##
###########################
###########################

name: Hackathon Deployment Request

######################################################
# Start the job on a "deployment" to hackathon-test or other branch #
######################################################

on:
workflow_dispatch:
inputs:
target_branch:
description: "Target branch to send PR to (e.g., main, stage, etc)"
type: string
required: false
default: "hackathon-test"

###############
# Set the Job #
###############

jobs:
ai-metadata-update:
name: AI Metadata Update on Deployment
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/ai-deploy-metadata.yml@app-builder-test
with:
FILE_NAME: "all_pages_content.txt"
secrets:
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint
run: npx --yes github:AdobeDocs/adp-devsite-utils#add-lint-check runLint -v
40 changes: 40 additions & 0 deletions .github/workflows/ai-pr-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
###########################
###########################
## Pull request testing ##
###########################
###########################
name: Hackathon Pull Request

# Documentation:
# - Workflow: https://help.github.com/en/articles/workflow-syntax-for-github-actions
# - SuperLinter: https://github.com/github/super-linter
# - Markdown linter: https://github.com/DavidAnson/markdownlint
# - Link validation: https://github.com/remarkjs/remark-validate-links

######################################################
# Start the job on a pull request to the hackathon-test branch #
######################################################
on:
pull_request:
branches: [hackathon-test]
paths:
- 'src/pages/**'

###############
# Set the Job #
###############
jobs:
call_reusable_workflow:
name: Generate AI Metadata
# Skip if PR title starts with "[AI PR] Metadata Update" or branch name starts with "ai-metadata"
if: >-
!startsWith(github.event.pull_request.title, '[AI PR] Metadata Update') ||
!startsWith(github.event.pull_request.head.ref, 'ai-metadata')
uses: AdobeDocs/adp-devsite-workflow/.github/workflows/ai-pr-request-metadata.yml@app-builder-test
with:
PR_ID: ${{ github.event.pull_request.number }}
FILE_NAME: "pr_content.txt"
secrets:
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
8 changes: 8 additions & 0 deletions src/pages/get_started/adobe-express (1).svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading