From 2c350b796f3b7d50aa3e044da8a463a45e21a9b8 Mon Sep 17 00:00:00 2001 From: Debasish Sahoo Date: Wed, 11 Sep 2024 16:54:15 -0400 Subject: [PATCH] Added the missing github action workflows --- .../workflows/increment-tagged-version.yaml | 24 +++++++++++++++++++ .github/workflows/validate-branch-name.yaml | 17 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/increment-tagged-version.yaml create mode 100644 .github/workflows/validate-branch-name.yaml diff --git a/.github/workflows/increment-tagged-version.yaml b/.github/workflows/increment-tagged-version.yaml new file mode 100644 index 0000000..25a0bdf --- /dev/null +++ b/.github/workflows/increment-tagged-version.yaml @@ -0,0 +1,24 @@ +on: + pull_request: + types: + - closed + branches: + - main + +name: increment-tagged-version + +permissions: + contents: write + +jobs: + increment_tag: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: 'main' + - name: Fetch Tags + run: git fetch --tags origin + - name: Increment Tagged Version + uses: launchbynttdata/actions-lcaf-increment_tagged_version@v0 diff --git a/.github/workflows/validate-branch-name.yaml b/.github/workflows/validate-branch-name.yaml new file mode 100644 index 0000000..fa063bc --- /dev/null +++ b/.github/workflows/validate-branch-name.yaml @@ -0,0 +1,17 @@ +on: + pull_request: + branches: [ "main" ] + +name: validate-branch-name + +permissions: + contents: read + +jobs: + lint: + name: Validate Branch Name + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Validate Branch Name + uses: launchbynttdata/actions-lcaf-branch_name@v0