Merge pull request #221 from OpenAF/20240312-210356 #91
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: Update pack | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
UpdatePack: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache OpenAF runtime | |
uses: actions/cache@v3 | |
with: | |
key : oaf-t8 | |
path: /tmp/oaf | |
- name: Generate oPack | |
uses: openaf/ojob-action@v4 | |
with: | |
script: oPack("genpack . --exclude .github") | |
dist : 't8' | |
- name: Update version badge | |
uses: openaf/ojob-action@v4 | |
with: | |
def : | | |
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 : "nattrmon.svg" | |
label : "repo opack version" | |
file : ".github/version.svg" | |
# ----------------- | |
- name: Get version | |
exec: args.status = io.readFileYAML(".package.yaml").version | |
dist: 't8' | |
- 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: 't8' | |
- name: Pack oPack | |
uses: openaf/ojob-action@v4 | |
with: | |
script: oPack("pack . --exclude .github") | |
dist : 't8' | |
- name: Upload oPack artifact | |
uses: actions/[email protected] | |
with: | |
name: nAttrMon.opack | |
path: nAttrMon-*.opack | |