Update update_dependant_projects.yml #5
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: Create Release | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Checkout GCM | |
uses: actions/checkout@v3 | |
with: | |
repository: HHS/ASPR-8 | |
path: gcm | |
ref: dev | |
sparse-checkout: | | |
gcm/pom.xml | |
sparse-checkout-cone-mode: false | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Get Version | |
run: | | |
echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV" | |
cd gcm/gcm | |
git checkout -b update-util-version | |
git commit -m "update util-version" | |
git push --set-upstream origin update-util-version | |
sed -i "0,/<util.version>.*<\/util.version>/s//<util.version>${VERSION}<\/util.version>/g" pom.xml | |
gh pr create -B dev -H update-util-version --fill | |
env: | |
GH_TOKEN: ${{ github.token }} | |