dependencyBot #641
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: dependencyBot | |
on: | |
schedule: | |
- cron: '06 08 * * *' | |
workflow_dispatch: | |
jobs: | |
# PRs must be closed and re-opened to trigger checks - see here: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs | |
CAMB: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for app ID | |
env: | |
appid: ${{ secrets.DEPLOY_APP_ID }} | |
run: | | |
echo Set environment with app ID | |
- uses: actions/checkout@v4 | |
- uses: tibdex/github-app-token@v2 | |
if: ${{ env.appid != '' }} | |
id: generate-token | |
with: | |
app_id: ${{ secrets.DEPLOY_APP_ID }} | |
private_key: ${{ secrets.DEPLOY_APP_PRIVATE_KEY }} | |
- uses: reviewdog/action-depup@v1 | |
if: ${{ env.appid != '' }} | |
id: depup | |
with: | |
file: aux/dependencies.yml | |
version_name: camb | |
repo: cmbant/CAMB | |
- name: Create Pull Request | |
if: ${{ env.appid != '' }} | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
commit-message: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
body: | | |
Update ${{ steps.depup.outputs.repo }} to [${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/releases/tag/v${{ steps.depup.outputs.latest }}) | |
This PR is auto generated by [dependencyBot](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}). | |
branch: depup/${{ steps.depup.outputs.repo }} | |
assignees: abensonca | |
token: ${{ steps.generate-token.outputs.token }} | |
forutils: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for app ID | |
env: | |
appid: ${{ secrets.DEPLOY_APP_ID }} | |
run: | | |
echo Set environment with app ID | |
- uses: actions/checkout@v4 | |
- uses: tibdex/github-app-token@v2 | |
if: ${{ env.appid != '' }} | |
id: generate-token | |
with: | |
app_id: ${{ secrets.DEPLOY_APP_ID }} | |
private_key: ${{ secrets.DEPLOY_APP_PRIVATE_KEY }} | |
- uses: reviewdog/action-depup@v1 | |
if: ${{ env.appid != '' }} | |
id: depup | |
with: | |
file: aux/dependencies.yml | |
version_name: forutils | |
repo: cmbant/forutils | |
- name: Create Pull Request | |
if: ${{ env.appid != '' }} | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
commit-message: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
body: | | |
Update ${{ steps.depup.outputs.repo }} to [${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/releases/tag/v${{ steps.depup.outputs.latest }}) | |
This PR is auto generated by [dependencyBot](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}). | |
branch: depup/${{ steps.depup.outputs.repo }} | |
assignees: abensonca | |
token: ${{ steps.generate-token.outputs.token }} | |
CLASS: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for app ID | |
env: | |
appid: ${{ secrets.DEPLOY_APP_ID }} | |
run: | | |
echo Set environment with app ID | |
- uses: actions/checkout@v4 | |
- uses: tibdex/github-app-token@v2 | |
if: ${{ env.appid != '' }} | |
id: generate-token | |
with: | |
app_id: ${{ secrets.DEPLOY_APP_ID }} | |
private_key: ${{ secrets.DEPLOY_APP_PRIVATE_KEY }} | |
- uses: reviewdog/action-depup@v1 | |
if: ${{ env.appid != '' }} | |
id: depup | |
with: | |
file: aux/dependencies.yml | |
version_name: class | |
repo: lesgourg/class_public | |
tag: true | |
- name: Create Pull Request | |
if: ${{ env.appid != '' }} | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
commit-message: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
body: | | |
Update ${{ steps.depup.outputs.repo }} to [${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/releases/tag/v${{ steps.depup.outputs.latest }}) | |
This PR is auto generated by [dependencyBot](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}). | |
branch: depup/${{ steps.depup.outputs.repo }} | |
assignees: abensonca | |
token: ${{ steps.generate-token.outputs.token }} | |
FSPS: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for app ID | |
env: | |
appid: ${{ secrets.DEPLOY_APP_ID }} | |
run: | | |
echo Set environment with app ID | |
- uses: actions/checkout@v4 | |
- uses: tibdex/github-app-token@v2 | |
if: ${{ env.appid != '' }} | |
id: generate-token | |
with: | |
app_id: ${{ secrets.DEPLOY_APP_ID }} | |
private_key: ${{ secrets.DEPLOY_APP_PRIVATE_KEY }} | |
- uses: reviewdog/action-depup@v1 | |
if: ${{ env.appid != '' }} | |
id: depup | |
with: | |
file: aux/dependencies.yml | |
version_name: fsps | |
repo: cconroy20/fsps | |
- name: Create Pull Request | |
if: ${{ env.appid != '' }} | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
commit-message: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
body: | | |
Update ${{ steps.depup.outputs.repo }} to [${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/releases/tag/v${{ steps.depup.outputs.latest }}) | |
This PR is auto generated by [dependencyBot](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}). | |
branch: depup/${{ steps.depup.outputs.repo }} | |
assignees: abensonca | |
token: ${{ steps.generate-token.outputs.token }} | |
Cloudy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for app ID | |
env: | |
appid: ${{ secrets.DEPLOY_APP_ID }} | |
run: | | |
echo Set environment with app ID | |
- uses: actions/checkout@v4 | |
- uses: tibdex/github-app-token@v2 | |
if: ${{ env.appid != '' }} | |
id: generate-token | |
with: | |
app_id: ${{ secrets.DEPLOY_APP_ID }} | |
private_key: ${{ secrets.DEPLOY_APP_PRIVATE_KEY }} | |
- name: Check for dependency | |
if: ${{ env.appid != '' }} | |
id: depup | |
run: | | |
versionMajor=`curl --silent https://data.nublado.org/cloudy_releases/ | grep -o -E 'href="c[[:digit:]]*/">'| sed 's/href="c//;s/\/">//' | sort -g -k 1 | tail -1` | |
if [[ ! -z ${versionMajor} ]]; then | |
versionFull=`curl --silent https://data.nublado.org/cloudy_releases/c${versionMajor}/ | grep -o -E 'href="c[[:digit:]]*\.[[:digit:]]*\.tar\.gz">' | sed 's/href="c//;s/\.tar\.gz">//'` | |
if [[ ! -z ${versionFull} ]]; then | |
sed -i~ -r s/"^cloudy:\s+[0-9\.]+"/"cloudy: ${versionFull}"/ aux/dependencies.yml | |
fi | |
fi | |
echo "latest=${versionFull}" >> "$GITHUB_OUTPUT" | |
echo "branch=cloudy" >> "$GITHUB_OUTPUT" | |
- name: Create Pull Request | |
if: ${{ env.appid != '' }} | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: "fix(deps): update ${{ steps.depup.outputs.branch }} to ${{ steps.depup.outputs.latest }}" | |
commit-message: "fix(deps): update ${{ steps.depup.outputs.branch }} to ${{ steps.depup.outputs.latest }}" | |
body: | | |
Update ${{ steps.depup.outputs.branch }} to [${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.branch }}/releases/tag/v${{ steps.depup.outputs.latest }}) | |
This PR is auto generated by [dependencyBot](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}). | |
branch: depup/${{ steps.depup.outputs.branch }} | |
assignees: abensonca | |
token: ${{ steps.generate-token.outputs.token }} | |
mangle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for app ID | |
env: | |
appid: ${{ secrets.DEPLOY_APP_ID }} | |
run: | | |
echo Set environment with app ID | |
- uses: actions/checkout@v4 | |
- uses: tibdex/github-app-token@v2 | |
if: ${{ env.appid != '' }} | |
id: generate-token | |
with: | |
app_id: ${{ secrets.DEPLOY_APP_ID }} | |
private_key: ${{ secrets.DEPLOY_APP_PRIVATE_KEY }} | |
- uses: reviewdog/action-depup@v1 | |
if: ${{ env.appid != '' }} | |
id: depup | |
with: | |
file: aux/dependencies.yml | |
version_name: mangle | |
repo: galacticusorg/mangle | |
- name: Create Pull Request | |
if: ${{ env.appid != '' }} | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
commit-message: "fix(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}" | |
body: | | |
Update ${{ steps.depup.outputs.repo }} to [${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/releases/tag/v${{ steps.depup.outputs.latest }}) | |
This PR is auto generated by [dependencyBot](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}). | |
branch: depup/${{ steps.depup.outputs.repo }} | |
assignees: abensonca | |
token: ${{ steps.generate-token.outputs.token }} |