Skip to content

Commit

Permalink
Update GH Actions workflows with command-docker-action and command-re…
Browse files Browse the repository at this point in the history
…lease-action.
  • Loading branch information
cliffano committed Nov 8, 2024
1 parent ae53013 commit 5b75f09
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 58 deletions.
3 changes: 0 additions & 3 deletions .github/actions/ci-action/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions .github/actions/ci-action/action.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/actions/ci-action/entrypoint.sh

This file was deleted.

19 changes: 15 additions & 4 deletions .github/workflows/ci-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: ./.github/actions/ci-action
node-version: '22'
- uses: iamsauravsharma/[email protected]
with:
file-path: '/tmp/.env'
env:
GITHUB_ACTIONS: ${{ env.GITHUB_ACTIONS }}
- uses: cliffano/[email protected]
with:
command: 'make ci'
image: cliffano/studio:2.5.0
shell: bash
extra_path: /usr/local/go/bin:/usr/local/maven/bin:/usr/local/node/bin:/usr/local/openjdk-jdk/bin:/root/.cargo/bin:/root/go/bin
env_file: '/tmp/.env'
- run: npm install -g gh-pages
- run: CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot <[email protected]>" --repo "https://cliffano:${{ secrets.OAPICF_GITHUB_TOKEN }}@github.com/oapicf/openapi-azureipranges.git"
- run: CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot <[email protected]>" --repo "https://cliffano:${{ secrets.OAPICF_GITHUB_TOKEN }}@github.com/oapicf/openapi-okta-ip-ranges.git"
19 changes: 4 additions & 15 deletions .github/workflows/release-major-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@ name: Release Major
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cliffano/[email protected]
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "pakkunbot"
- run: npm install -g rtk
- run: rtk release --release-increment-type major
- uses: ad-m/github-push-action@master
with:
tags: true
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
branch: ${{ github.ref }}
release_type: 'major'
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
19 changes: 4 additions & 15 deletions .github/workflows/release-minor-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@ name: Release Minor
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cliffano/[email protected]
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "pakkunbot"
- run: npm install -g rtk
- run: rtk release --release-increment-type minor
- uses: ad-m/github-push-action@master
with:
tags: true
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
branch: ${{ github.ref }}
release_type: 'minor'
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
19 changes: 4 additions & 15 deletions .github/workflows/release-patch-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@ name: Release Patch
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cliffano/[email protected]
with:
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "pakkunbot"
- run: npm install -g rtk
- run: rtk release --release-increment-type patch
- uses: ad-m/github-push-action@master
with:
tags: true
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
branch: ${{ github.ref }}
release_type: 'patch'
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}

0 comments on commit 5b75f09

Please sign in to comment.