Skip to content

build(deps): bump ruby/setup-ruby from 1.162.0 to 1.184.0 #347

build(deps): bump ruby/setup-ruby from 1.162.0 to 1.184.0

build(deps): bump ruby/setup-ruby from 1.162.0 to 1.184.0 #347

Workflow file for this run

---
name: πŸ“– Code
on:
push:
branches: [main]
paths:
- ".github/workflows/code.yml"
pull_request:
branches: [main]
paths:
- ".github/workflows/code.yml"
schedule:
- cron: "30 4 * * 4"
workflow_dispatch: {}
jobs:
generate:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
environment: code
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: ⚑ Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y zsh tree
sudo make -C lib/zsdoc install
- name: πŸ’Ž Setup Ruby
uses: ruby/setup-ruby@97e35c5302afcf3f5ac1df3fca9343d32536b286
with:
ruby-version: 3.1
bundler-cache: true
- name: πŸ“ Install asciidoctor-pdf and rouge
run: gem install asciidoctor-pdf rouge
- name: ♻️ Generate Code
run: |
make -C code
make -C code clean
- name: πŸ— Compress code documentation
run: tar cvzf code.tar.gz code
- name: πŸ“€ Upload code.tar.gz
uses: actions/upload-artifact@v4
with:
name: code documentation
path: code.tar.gz
- name: ♻️ Cleanup
run: rm -rf code.tar.gz
- name: "πŸ†— Commit"
if: ${{ github.event_name != 'pull_request' }}
uses: z-shell/.github/actions/commit@main
with:
commitMessage: Code ${{ github.sha }}
workDir: code
commitUserName: digital-teams[bot]
commitUserEmail: [email protected]