Skip to content

AWS IAM Identity Center + Microsoft Entra ID による SSO と複数 AWS アカウント切り替えのしくみ 2024年版 #50

AWS IAM Identity Center + Microsoft Entra ID による SSO と複数 AWS アカウント切り替えのしくみ 2024年版

AWS IAM Identity Center + Microsoft Entra ID による SSO と複数 AWS アカウント切り替えのしくみ 2024年版 #50

Workflow file for this run

name: CI for Zenn
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
validate-zenn-metadata:
name: Validate metadata
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2 # Because if `fetch-depth >= 2` is not set, unchanged files will be updated.
- uses: korosuke613/zenn-metadata-updater-action@v2
with:
validate-only: true
textlint:
name: Check textlint
runs-on: ubuntu-latest
env:
ARTICLES_PATH: articles
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2 # Because if `fetch-depth >= 2` is not set, unchanged files will be updated.
- uses: tj-actions/changed-files@v39
id: changed-files-yaml
with:
files_yaml: |
md:
- '${{ env.ARTICLES_PATH }}/**/*.md'
- name: Changed files
if: steps.changed-files-yaml.outputs.md_any_changed == 'true'
env:
CHANGED_FILES: ${{ steps.changed-files-yaml.outputs.md_all_changed_files }}
run: |
echo ${{ env.CHANGED_FILES }}
- uses: actions/setup-node@v3
if: steps.changed-files-yaml.outputs.md_any_changed == 'true'
with:
node-version-file: .tool-versions
cache: 'npm'
- name: Install latest corepack
if: steps.changed-files-yaml.outputs.md_any_changed == 'true'
run: |
npm i -g corepack@latest
- if: steps.changed-files-yaml.outputs.md_any_changed == 'true'
run: corepack enable npm
- if: steps.changed-files-yaml.outputs.md_any_changed == 'true'
run: npm ci
- if: steps.changed-files-yaml.outputs.md_any_changed == 'true'
uses: tsuyoshicho/action-textlint@v3
with:
github_token: ${{ secrets.github_token }}
textlint_flags: ${{ steps.changed-files-yaml.outputs.md_all_changed_files }}