Skip to content

Upgrade: [dependabot] - bump boto3 from 1.42.9 to 1.42.13 (#533) #391

Upgrade: [dependabot] - bump boto3 from 1.42.9 to 1.42.13 (#533)

Upgrade: [dependabot] - bump boto3 from 1.42.9 to 1.42.13 (#533) #391

Workflow file for this run

name: release workflow
on:
push:
branches: [ main ]
env:
BRANCH_NAME: ${{ github.event.ref.BRANCH_NAME }}
jobs:
get_asdf_version:
runs-on: ubuntu-22.04
outputs:
asdf_version: ${{ steps.asdf-version.outputs.version }}
tag_format: ${{ steps.load-config.outputs.TAG_FORMAT }}
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Get asdf version
id: asdf-version
run: echo "version=$(awk '!/^#/ && NF {print $1; exit}' .tool-versions.asdf)" >> "$GITHUB_OUTPUT"
- name: Load config value
id: load-config
run: |
TAG_FORMAT=$(yq '.TAG_FORMAT' .github/config/settings.yml)
echo "TAG_FORMAT=$TAG_FORMAT" >> "$GITHUB_OUTPUT"
quality_checks:
needs: [get_asdf_version]
uses: NHSDigital/eps-common-workflows/.github/workflows/quality-checks.yml@2b3ddfd1e59daf9905522d0140c6cd08e2547432
with:
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
reinstall_poetry: true
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
get_commit_id:
runs-on: ubuntu-22.04
outputs:
commit_id: ${{ steps.commit_id.outputs.commit_id }}
steps:
- name: Get Commit ID
id: commit_id
run: |
echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
tag_release:
needs: [quality_checks, get_commit_id, get_asdf_version]
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release.yml@2b3ddfd1e59daf9905522d0140c6cd08e2547432
with:
dry_run: false
asdfVersion: ${{ needs.get_asdf_version.outputs.asdf_version }}
branch_name: main
publish_package: false
tag_format: ${{ needs.get_asdf_version.outputs.tag_format }}
secrets: inherit
generate_behave_steps_catalog:
needs: quality_checks
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
ref: ${{ env.BRANCH_NAME }}
fetch-depth: 0
- name: Get asdf version
id: asdf-version
run: echo "version=$(awk '!/^#/ && NF {print $1; exit}' .tool-versions.asdf)" >> "$GITHUB_OUTPUT"
- name: Install asdf
uses: asdf-vm/actions/setup@b7bcd026f18772e44fe1026d729e1611cc435d47
with:
asdf_version: ${{ steps.asdf-version.outputs.version }}
- name: Cache asdf
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
path: |
~/.asdf
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
- name: Install asdf dependencies in .tool-versions
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47
with:
asdf_version: ${{ steps.asdf-version.outputs.version }}
env:
PYTHON_CONFIGURE_OPTS: --enable-shared
- name: Cache Virtualenv
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
id: cache-venv
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('pyproject.toml') }}
- name: Install python packages
if: steps.cache-venv.outputs.cache-hit != 'true'
run: make install
- name: Generate Behave steps catalog as HTML
run: |
set +H # Disable history expansion to prevent !DOCTYPE error
mkdir -p docs
{
echo "<!DOCTYPE html>"
echo "<html lang='en'>"
echo "<head>"
echo " <meta charset='UTF-8'>"
echo " <meta name='viewport' content='width=device-width, initial-scale=1.0'>"
echo " <title>Behave Steps Catalog</title>"
echo " <style>"
echo " body { font-family: 'Courier New', monospace; background-color: #f4f4f4; padding: 2rem; }"
echo " pre { background:
white; border: 1px solid #ccc; padding: 1rem; overflow-x: auto; }"
echo " h1 { font-family: sans-serif; }"
echo " </style>"
echo "</head>"
echo "<body>"
echo " <h1>Behave Steps Catalog</h1>"
echo " <pre>"
# Escape HTML special characters to ensure valid output
poetry run behave --steps-catalog | python -c "import sys, html; print(html.escape(sys.stdin.read()))"
echo " </pre>"
echo "</body>"
echo "</html>"
} > docs/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: gh-pages # Change if using another branch