Update organization packages list #13
This file contains hidden or 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: Update organization packages list | |
| on: | |
| schedule: | |
| # Every Monday at 03:00 UTC | |
| - cron: "0 3 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-list: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Julia | |
| uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: '1' | |
| - name: Instantiate project | |
| run: julia -e 'using Pkg; Pkg.activate("pkgs_data"); Pkg.instantiate()' | |
| - name: Run update_org_packages script | |
| run: julia pkgs_data/get_jso_packages.jl | |
| - name: Check for changes | |
| id: git_diff | |
| run: | | |
| if git diff --quiet; then | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Create Pull Request | |
| if: steps.git_diff.outputs.changed == 'true' | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: "chore: update organization packages list" | |
| title: "chore: update organization packages list" | |
| body: | | |
| This PR updates `pkgs_data/list_jso_packages.dat` with the latest organization packages. | |
| Created automatically by GitHub Actions. | |
| branch: bot/update-org-packages-list | |
| base: main | |
| add-paths: | | |
| pkgs_data/list_jso_packages.dat |