Skip to content

Bump actions/checkout from 3.5.3 to 3.6.0 #249

Bump actions/checkout from 3.5.3 to 3.6.0

Bump actions/checkout from 3.5.3 to 3.6.0 #249

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@f43a0e5ff2bd294095638e18286ca9a3d1956744
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@250fcd6a742febb1123a77a841497ccaa8b9e939
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@v3
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]