Scan Versions #187
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: Scan Versions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '37 8 * * *' | |
jobs: | |
Scan-Versions: | |
runs-on : ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
name : Scan version | |
steps : | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- name: Cache OpenAF runtime | |
uses: actions/cache@v3 | |
with: | |
key : oaf-nightly | |
path: /tmp/oaf | |
- name: Get versions build | |
run : | | |
docker run --rm nmaguiar/netutils:build /openaf/ojob /openaf/ojobs/softVersions.yaml -json > .github/softVersions-build.json | |
- name: Get versions latest | |
run : | | |
docker run --rm nmaguiar/netutils:latest /openaf/ojob /openaf/ojobs/softVersions.yaml -json > .github/softVersions-latest.json | |
- uses: openaf/ojob-action@v4 | |
name: Update files | |
env : | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
ojob: 'ojob.io/git/hub/contentIn' | |
args: 'message="update\ versions\ {{date}}/{{time}}" title="Update\ versions" paths=.github/' | |
dist: 'nightly' |