missing Person/@PhoneticFirstName /@PhoneticFirstName #45
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: Publish Samples | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
publish-samples: | |
runs-on: windows-latest | |
steps: | |
- name: Get GitHub Access Token | |
id: access_token | |
uses: tibdex/github-app-token@v1 | |
with: | |
app_id: ${{ secrets.CIP4_GITHUB_ACTIONS_APP_ID }} | |
private_key: ${{ secrets.CIP4_GITHUB_ACTIONS_APP_KEY }} | |
- name: Check out 'JDF Schema'... | |
uses: actions/checkout@v3 | |
with: | |
path: 'schema' | |
- name: Check out 'JDF Specificaion'... | |
uses: actions/checkout@v3 | |
with: | |
repository: 'cip4/JDF-Specification' | |
token: ${{ steps.access_token.outputs.token }} | |
path: 'spec' | |
- name: Check out 'Sample Builder'... | |
uses: actions/checkout@v3 | |
with: | |
repository: 'cip4/cip4-sample-builder' | |
token: ${{ steps.access_token.outputs.token }} | |
path: 'cip4-sample-builder' | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
cache: 'gradle' | |
- name: Generate JDF Samples | |
run: ./gradlew.bat --include-build ../cip4-sample-builder clean buildSamples --no-daemon | |
working-directory: ./schema | |
- name: Replace JDF Samples in Specification | |
run: | | |
rm -r -fo spec\FrameMaker\Examples\jdf | |
move schema\build\generated-samples spec\FrameMaker\Examples\jdf | |
- name: Add Version Details | |
run: echo build $env:GITHUB_RUN_NUMBER > version.txt | |
working-directory: ./spec/FrameMaker/Examples/jdf | |
- name: Push changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "R2D2" | |
git add --all | |
git commit -m "Update JDF Samples" | |
git push | |
working-directory: ./spec |