Skip to content

Prevent per-node scheduling fallback during batch scheduling retry #1713

Prevent per-node scheduling fallback during batch scheduling retry

Prevent per-node scheduling fallback during batch scheduling retry #1713

Workflow file for this run

name: "Publish snapshot to NetflixOSS and Maven Central"
on:
pull_request:
jobs:
approve: # First step
runs-on: ubuntu-latest
steps:
- name: Approve
run: echo For security reasons, all pull requests need to be approved first before running any automated CI.
build: # Second step
runs-on: ubuntu-latest
needs: [ approve ] # Require the first step to finish
environment:
name: Integrate Pull Request # Our protected environment variable
steps:
- name: Setup Git
run: |
git config --global user.name "Mantis OSS Maintainers"
git config --global user.email "[email protected]"
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup jdk
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- name: Build
uses: gradle/gradle-build-action@v2
env:
NETFLIX_OSS_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }}
NETFLIX_OSS_SIGNING_PASSWORD: ${{ secrets.ORG_SIGNING_PASSWORD }}
NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }}
NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }}
with:
arguments: --info --stacktrace build -x test snapshot
- name: Create PR Comment String
run: |
src=${GITHUB_WORKSPACE}/build/versions.txt
dest=${GITHUB_WORKSPACE}/build/versions2.txt
echo 'resolutionStrategy {' > $dest
awk '{print " force \"" $0 "\""}' $src >> $dest
echo '}' >> $dest
echo "PR_STR<<EOF" >> $GITHUB_ENV
cat ${dest} >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Upload
uses: mshick/add-pr-comment@v2
with:
message: |
## Uploaded Artifacts
To use these artifacts in your Gradle project, paste the following lines in your build.gradle.
```
${{ env.PR_STR }}
```
message-id: ${{ github.event.number }} # For sticky messages
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false # This is the default