Add drop down for citation key patterns (#12516) #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 100 | |
- 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/product-map-action@v1.0.15 | |
# disabled because of https://github.com/product-map/product-map-action/issues/7 | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
expected_files: ${{ env.expected_files }} | |
user_email: koppdev@gmail.com |