Skip to content

Commit

Permalink
Add .github/workflows/product-map.yml (#12490)
Browse files Browse the repository at this point in the history
* Add .github/workflows/product-map.yml

* Try other hack

* Remove double ()
  • Loading branch information
koppor authored Feb 11, 2025
1 parent f31f31b commit 39d7971
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/product-map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Product Map Generation

on:
push:
branches:
- main
pull_request:

jobs:
generate-map:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Get changed Java files
id: changed-files
run: |
FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- '*.java' | sed 's|^|\"|' | sed 's|$|\"|' | paste -sd "," -)
if [ -z "$FILES" ]; then FILES="\"dummy.java\""; fi
echo "expected_files=(${FILES})" >> $GITHUB_ENV
- name: ProductMap Map Generation
uses: product-map/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
expected_files: ${{ env.expected_files }}
user_email: [email protected]

0 comments on commit 39d7971

Please sign in to comment.