Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/actionlint.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci-require-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
require-labels:
if: ${{ github.event_name == 'pull_request' }}
runs-on: office-ci-small
runs-on: ubuntu-24.04
outputs:
status: ${{ steps.require-labels.outputs.status }}
steps:
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,31 @@ permissions:
pull-requests: read
jobs:
get-version:
runs-on: office-ci-small
runs-on: ubuntu-24.04
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- name: Get Release Version
id: get-version
uses: nullify-platform/github-actions/actions/release-version@main
- run: |
echo "config-file-parser @ ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
echo "VERSION: ${{ steps.get-version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "SHORT_SHA: $(git rev-parse --short HEAD)" >> $GITHUB_STEP_SUMMARY
{
echo "config-file-parser @ ${{ github.sha }}"
echo "VERSION: ${{ steps.get-version.outputs.version }}"
echo "SHORT_SHA: $(git rev-parse --short HEAD)"
} >> "$GITHUB_STEP_SUMMARY"
release:
if: ${{ needs.get-version.outputs.version != 'undefined' || (github.event_name == 'workflow_dispatch' && needs.get-version.outputs.version != 'undefined') }}
runs-on: office-ci-small
needs: [ get-version ]
runs-on: ubuntu-24.04
needs: [get-version]
steps:
- uses: actions/checkout@v6
- name: Generate Release Tag
run: echo "RELEASE_TAG=v${{ needs.get-version.outputs.version }}" >> $GITHUB_ENV
run: echo "RELEASE_TAG=v${{ needs.get-version.outputs.version }}" >> "$GITHUB_ENV"
- name: Generate Release
uses: softprops/action-gh-release@v3
with:
Expand Down
60 changes: 17 additions & 43 deletions .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,27 @@ name: PR Check - YAML Lint

on:
pull_request:
branches: [master]
branches: [main]
paths:
- '**.yml'
- '**.yaml'
- .github/workflows/.yamllint

permissions:
contents: read

jobs:
yaml-lint:
name: yaml-lint
runs-on: office-ci-small
runs-on: ubuntu-24.04
steps:
- name: Checkout Repo
uses: actions/checkout@v6
with:
fetch-depth: 1

- name: Get list of changed files
id: files
uses: tj-actions/changed-files@v47.0.6

- name: Get list of updated files to run yammlint
id: updatedFiles
run: |
for file in ${{ steps.files.outputs.all_changed_files }}; do
if [[ "$file" == *.yaml || "$file" == *.yml ]]
then
files=("${files[@]}" "$file")
fi
done
echo "files=${files[@]}" >> $GITHUB_OUTPUT

- name: Lint YAML files
uses: karancode/yamllint-github-action@master
if: ${{ steps.updatedFiles.outputs.files }}
- uses: actions/checkout@v6
with:
yamllint_file_or_dir: ${{ steps.updatedFiles.outputs.files }}
yamllint_comment: true
yamllint_config_filepath: .github/workflows/.yamllint
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Add approvers. Only run once; Use a label for this.
add-reviewers:
if: "!contains( toJson(github), 'reviewers-set' )"
needs: [yaml-lint]
runs-on: office-ci-small
steps:
- name: add approvers
uses: kentaro-m/auto-assign-action@v2.0.2

- name: label reviewers-set
uses: andymckay/labeler@master
persist-credentials: false
- uses: actions/setup-python@v6
with:
add-labels: "reviewers-set"
python-version: '3.13'
- name: Install YAML linter
run: python -m pip install yamllint==1.37.1
- name: Lint tracked YAML files
run: git ls-files -z '*.yml' '*.yaml' | xargs -0 -r yamllint --strict --config-file .github/workflows/.yamllint
2 changes: 1 addition & 1 deletion actions/clean-up-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:
remove-issue-stale-when-updated: true
remove-pr-stale-when-updated: true
exempt-all-milestones: true

- name: Print stale/closed Issues and PRs
shell: bash
env:
Expand Down
8 changes: 4 additions & 4 deletions actions/release-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ branding:
icon: 'cloud'
color: 'purple'
outputs:
version:
version:
description: "Determine the next tag version"
value: ${{ steps.version.outputs.result }}
latest_version:
latest_version:
description: "Look up latest tag version"
value: ${{ steps.vars.outputs.latest_version }}
previous_version:
previous_version:
description: "Look up previous tag version"
value: ${{ steps.vars.outputs.previous_version }}
short_sha:
short_sha:
description: "Look up short SHA"
value: ${{ steps.vars.outputs.short_sha }}
runs:
Expand Down