Skip to content

Commit d2cf253

Browse files
committed
Update GH Actions to latest OAPICF standard.
1 parent 7bd0f06 commit d2cf253

File tree

11 files changed

+31
-20
lines changed

11 files changed

+31
-20
lines changed

.github/actions/publish-javascript-action/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
set -o errexit
3+
set -o nounset
4+
25
export NODE_AUTH_TOKEN="${NPMJS_TOKEN}"
36
make clean deps init-spec generate-primary build-javascript test-javascript
47

.github/actions/publish-python-action/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
set -o errexit
3+
set -o nounset
4+
25
make clean deps init-spec generate-primary build-python test-python
36

47
rm -f ~/.pypirc && touch ~/.pypirc

.github/actions/publish-ruby-action/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
set -o errexit
3+
set -o nounset
4+
25
make clean deps init-spec generate-primary build-ruby test-ruby
36

47
rm -f ~/.gem/credentials

.github/workflows/ci-workflow.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on: [push, pull_request, workflow_dispatch]
44
jobs:
55
build:
6-
runs-on: ubuntu-22.04
6+
runs-on: ubuntu-24.04
77
steps:
88
- uses: actions/checkout@v4
99
with:
@@ -19,9 +19,11 @@ jobs:
1919
- uses: cliffano/[email protected]
2020
with:
2121
command: 'make ci'
22-
image: cliffano/studio:2.5.0
22+
image: cliffano/studio:2.11.1
2323
shell: bash
24-
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
24+
# based on https://github.com/cliffano/packer-studio/blob/main/provisioners/shell/info-post.sh#L5
25+
# TODO: replace /root with studio-user's home when available
26+
extra_path: '/root/.cargo/bin:/root/.local/bin:/root/go/bin:/opt/poetry-venv/bin:/opt/poetry/bin:/usr/local/go/bin:/usr/local/maven/bin:/usr/local/node/bin:/usr/local/openjdk-jdk/bin'
2527
env_file: '/tmp/.env'
2628
- run: npm install -g gh-pages
27-
- 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"
29+
- run: CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot <[email protected]>" --repo "https://cliffano:${{ secrets.OAPICF_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"

.github/workflows/publish-doc-workflow.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ name: Publish API Documentation
55
- '*'
66
jobs:
77
build:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
1111
with:
1212
token: ${{ secrets.OAPICF_GITHUB_TOKEN }}
1313
ref: main
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: '20'
16+
node-version: '22'
1717
- run: make deps init-spec doc-latest doc-version
1818
- run: >-
1919
CACHE_DIR=/tmp gh-pages --dist doc/ --user "pakkunbot
2020
<[email protected]>" --repo "https://cliffano:${{
21-
secrets.OAPICF_GITHUB_TOKEN
22-
}}@github.com/oapicf/openapi-okta-ip-ranges.git"
21+
secrets.OAPICF_GITHUB_TOKEN }}@github.com/${{ github.repository
22+
}}.git"

.github/workflows/publish-javascript-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Publish JavaScript
55
- '*'
66
jobs:
77
build:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
1111
with:

.github/workflows/publish-python-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Publish Python
55
- '*'
66
jobs:
77
build:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
1111
with:

.github/workflows/publish-ruby-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Publish Ruby
55
- '*'
66
jobs:
77
build:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
1111
with:

.github/workflows/release-major-workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Release Major
33
on: [workflow_dispatch]
44
jobs:
55
build:
6-
runs-on: ubuntu-22.04
6+
runs-on: ubuntu-24.04
77
steps:
8-
- uses: cliffano/release-action@v1.0.0
8+
- uses: cliffano/release-action@v1.1.0
99
with:
1010
release_type: 'major'
1111
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}

.github/workflows/release-minor-workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Release Minor
33
on: [workflow_dispatch]
44
jobs:
55
build:
6-
runs-on: ubuntu-22.04
6+
runs-on: ubuntu-24.04
77
steps:
8-
- uses: cliffano/release-action@v1.0.0
8+
- uses: cliffano/release-action@v1.1.0
99
with:
1010
release_type: 'minor'
1111
github_token: ${{ secrets.OAPICF_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)