Add repository guidelines and documentation for project structure, co… #31
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 package | |
| on: | |
| push: | |
| branches: [ main ] | |
| #pull_request: | |
| # branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| updateOPack: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps : | |
| # -------------------------- | |
| - name: Cache OpenAF runtime | |
| uses: actions/cache@v3 | |
| with: | |
| key : oaf-nightly | |
| path: /tmp/oaf | |
| # ------------------------- | |
| - uses: actions/checkout@v2 | |
| # ------------------ | |
| - name: Generate oPack | |
| uses: openaf/ojob-action@v7 | |
| with: | |
| script: | #js | |
| ow.loadFormat() | |
| oPack("genpack . --exclude .github") | |
| var pack = io.readFileYAML(".package.yaml") | |
| pack.version = ow.format.fromDate(new Date(), "yyyyMMdd") | |
| io.writeFileYAML(".package.yaml", pack) | |
| dist : 'nightly' | |
| # -------------------------- | |
| - name: Update version badge | |
| uses: openaf/ojob-action@v4 | |
| with: | |
| def : | #yaml | |
| todo: | |
| - Update badge with version | |
| ojob: | |
| opacks: | |
| - Badgen | |
| include: | |
| - badgen.yaml | |
| jobs: | |
| # ------------------------------- | |
| - name: Update badge with version | |
| from: Get version | |
| to : | |
| - name: Badgen generate file | |
| args: | |
| labelColor: grey3 | |
| color : blue | |
| icon : "openaf_grey.svg" | |
| label : "mini-a" | |
| file : ".github/version.svg" | |
| # ----------------- | |
| - name: Get version | |
| exec: args.status = io.readFileYAML(".package.yaml").version | |
| dist: 'nightly' | |
| # ------------- | |
| - name: Checkin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| uses: openaf/ojob-action@v4 | |
| with: | |
| ojob: 'ojob.io/git/hub/contentIn' | |
| args: 'message="Update\ package" title="Update\ package" paths=.github/version.svg,.package.yaml' | |
| dist: 'nightly' |