| 1 | name: Generate new report
|
| 2 |
|
| 3 | on:
|
| 4 | # push: # Add this temporarily
|
| 5 | # branches:
|
| 6 | # - update-causes-script
|
| 7 | workflow_dispatch:
|
| 8 | inputs:
|
| 9 | kind:
|
| 10 | type: choice
|
| 11 | description: What kind of report
|
| 12 | options:
|
| 13 | - main
|
| 14 | - community
|
| 15 | base_report:
|
| 16 | required: true
|
| 17 |
|
| 18 | jobs:
|
| 19 | aports-report:
|
| 20 | # runs-on: ubuntu-22.04
|
| 21 | # steps:
|
| 22 | # - name: Check out repository code
|
| 23 | # uses: actions/checkout@v4
|
| 24 | # - name: Setup SSH
|
| 25 | # run: |
|
| 26 | # mkdir -p ~/.ssh
|
| 27 | # chmod 700 ~/.ssh
|
| 28 | # echo "${{ secrets.SSH_KEY_OP_OILS_PUB }}" > ~/.ssh/id_ed25519
|
| 29 | # chmod 600 ~/.ssh/id_ed25519
|
| 30 | # ssh-keyscan op.oils.pub >> ~/.ssh/known_hosts
|
| 31 | # - name: Install Python 2
|
| 32 | # run: |
|
| 33 | # sudo apt-get update
|
| 34 | # sudo apt-get install -y python2
|
| 35 | # - name: Install ysh & generate new report
|
| 36 | # run: |
|
| 37 | # mkdir -p bin
|
| 38 | # curl -LJo bin/ysh "http://op.oils.pub/blob/ysh"
|
| 39 | # curl -LJo bin/cmark "http://op.oils.pub/blob/cmark"
|
| 40 | # chmod +x bin/*
|
| 41 | # export PATH="$PATH:$(pwd)/bin"
|
| 42 | # curl -LJo devbuild.tar.gz "http://op.oils.pub/blob/devbuild.tar.gz"
|
| 43 | # tar xf devbuild.tar.gz
|
| 44 | # regtest/aports-update-causes.sh update-latest ${{ inputs.base_report }} ${{ inputs.kind }}
|
| 45 | runs-on: ubuntu-22.04
|
| 46 | env:
|
| 47 | REPO_ROOT: ${{ github.workspace }}
|
| 48 | REGTEST_CAUSES_BASE_REPORT: ${{ inputs.base_report }}
|
| 49 | REGTEST_CAUSES_KIND: ${{ inputs.kind }}
|
| 50 | steps:
|
| 51 | - name: Check out repository code
|
| 52 | uses: actions/checkout@v4
|
| 53 | - name: Setup SSH
|
| 54 | run: |
|
| 55 | mkdir -p ~/.ssh
|
| 56 | chmod 700 ~/.ssh
|
| 57 | echo "${{ secrets.SSH_KEY_OP_OILS_PUB }}" > ~/.ssh/id_ed25519
|
| 58 | chmod 600 ~/.ssh/id_ed25519
|
| 59 | ssh-keyscan op.oils.pub >> ~/.ssh/known_hosts
|
| 60 | - name: aports-report
|
| 61 | run: |
|
| 62 | soil/github-actions.sh run-job aports-report podman
|
| 63 |
|
| 64 |
|