From f78c6cce777bdabffe1e23a7ff0271b07ba0f775 Mon Sep 17 00:00:00 2001 From: JP Shilton Date: Mon, 28 Aug 2023 17:06:12 -0400 Subject: [PATCH] remove unneeded actions --- .github/actions/getsha/action.yml | 12 ------------ .github/actions/getver/action.yml | 14 -------------- .../build-and-publish-typescript-project-types.yml | 2 +- .../build-and-publish-typescript-project.yml | 2 +- .github/workflows/getsha.yml | 3 ++- .github/workflows/getver.yml | 8 +++++--- 6 files changed, 9 insertions(+), 32 deletions(-) delete mode 100644 .github/actions/getsha/action.yml delete mode 100644 .github/actions/getver/action.yml diff --git a/.github/actions/getsha/action.yml b/.github/actions/getsha/action.yml deleted file mode 100644 index e8034ad..0000000 --- a/.github/actions/getsha/action.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Get GitHub SHA - -outputs: - sha: - value: ${{ steps.getsha.outputs.sha }} - -runs: - using: "composite" - steps: - - id: getsha - shell: bash - run: echo "sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT diff --git a/.github/actions/getver/action.yml b/.github/actions/getver/action.yml deleted file mode 100644 index 4eda2b7..0000000 --- a/.github/actions/getver/action.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Get Version From Tag - -outputs: - version: - value: ${{ steps.vertag.outputs.version }} - -runs: - using: "composite" - - steps: - - id: vertag - shell: bash - if: startsWith(github.ref, 'refs/tags/v') - run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/build-and-publish-typescript-project-types.yml b/.github/workflows/build-and-publish-typescript-project-types.yml index d5e1718..9b6f865 100644 --- a/.github/workflows/build-and-publish-typescript-project-types.yml +++ b/.github/workflows/build-and-publish-typescript-project-types.yml @@ -9,7 +9,7 @@ on: jobs: getver: - uses: OpenPhone/gha/.github/actions/getver@common-actions + uses: OpenPhone/gha/.github/workdlows/getver.yml@common-actions build-types: name: Build and Publish Types diff --git a/.github/workflows/build-and-publish-typescript-project.yml b/.github/workflows/build-and-publish-typescript-project.yml index 44b791c..0478a69 100644 --- a/.github/workflows/build-and-publish-typescript-project.yml +++ b/.github/workflows/build-and-publish-typescript-project.yml @@ -9,7 +9,7 @@ on: jobs: getver: - uses: OpenPhone/gha/.github/actions/getver@common-actions + uses: OpenPhone/gha/.github/workflows/getver.yml@common-actions build: name: Build and Publish Types diff --git a/.github/workflows/getsha.yml b/.github/workflows/getsha.yml index 6e9ccc0..7fe4986 100644 --- a/.github/workflows/getsha.yml +++ b/.github/workflows/getsha.yml @@ -16,4 +16,5 @@ jobs: steps: - id: getsha - uses: OpenPhone/gha/.github/actions/getsha@common-actions + shell: bash + run: echo "sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/getver.yml b/.github/workflows/getver.yml index c57fb6f..ea2210f 100644 --- a/.github/workflows/getver.yml +++ b/.github/workflows/getver.yml @@ -12,8 +12,10 @@ jobs: runs-on: ubuntu-22.04 outputs: - version: ${{ steps.getver.outputs.version }} + version: ${{ steps.vertag.outputs.version }} steps: - - id: getver - uses: OpenPhone/gha/.github/actions/getver@common-actions + - id: vertag + shell: bash + if: startsWith(github.ref, 'refs/tags/v') + run: echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT