build(deps): bump ruby/setup-ruby from 1.162.0 to 1.198.0 #380
Workflow file for this run
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: π 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@98aefb3c83eea830993080938ed245dc8e2b843b | |
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] |