Skip to content

fix(deps): update dependency org.eclipse.jgit:org.eclipse.jgit to v6.… #457

fix(deps): update dependency org.eclipse.jgit:org.eclipse.jgit to v6.…

fix(deps): update dependency org.eclipse.jgit:org.eclipse.jgit to v6.… #457

Workflow file for this run

# Support workflows e.g. for generating documentation
name: support
on:
push:
branches: [ master ]
env:
JAVA_DISTRIBUTION: 'adopt'
jobs:
generate-achievements-handled_rules-md:
if: ${{ github.repository == 'ASSERT-KTH/sorald' }} # don't accidentally run on forks :)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 2
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: 3.8
- name: Install support scripts
run: |
pip install --upgrade pip
pip install -e experimentation/tools
- name: Generate ACHIEVEMENTS.md and submit a PR if modified
run: |
SCRIPT_NAME=achievements
GENERATED_FILE=docs/ACHIEVEMENTS.md
python experimentation/tools/sorald/${SCRIPT_NAME}.py -p experimentation/prs.json -o ${GENERATED_FILE}
./.github/submit-pr.sh \
--branch-prefix ${SCRIPT_NAME} \
--generated-file ${GENERATED_FILE} \
--gh-sha ${{ github.sha }} \
--gh-token ${{ secrets.GITHUB_TOKEN }} \
--gh-repository ${{ github.repository }} \
--gh-workflow ${{ github.workflow }}
- name: Generate HANDLED_RULES.md and submit a PR if modified
run: |
SCRIPT_NAME=handled_rules
GENERATED_FILE=docs/HANDLED_RULES.md
python experimentation/tools/sorald/${SCRIPT_NAME}.py -o ${GENERATED_FILE}
./.github/submit-pr.sh \
--branch-prefix ${SCRIPT_NAME} \
--generated-file ${GENERATED_FILE} \
--gh-sha ${{ github.sha }} \
--gh-token ${{ secrets.GITHUB_TOKEN }} \
--gh-repository ${{ github.repository }} \
--gh-workflow ${{ github.workflow }}
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: 11
java-package: jdk
architecture: x64
distribution: ${{ env.JAVA_DISTRIBUTION }}
- name: Generate usage for the subcommands and submit a PR if modified
run: |
mvn clean compile dependency:build-classpath -Dmdep.outputFile=cp.txt
(cd sorald && java -cp $(cat cp.txt):target/classes/ picocli.codegen.docgen.manpage.ManPageGenerator \
--outdir=../docs/usage/ \
sorald.cli.MineCommand \
sorald.cli.RepairCommand)
./.github/submit-pr.sh \
--branch-prefix usage \
--generated-file docs/usage \
--gh-sha ${{ github.sha }} \
--gh-token ${{ secrets.GITHUB_TOKEN }} \
--gh-repository ${{ github.repository }} \
--gh-workflow ${{ github.workflow }}