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
2 changes: 1 addition & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
with:
token: ${{ secrets.INTEGRATIONS_FNM_BOT_TOKEN }}
- name: Update Install Script
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
run: echo "BRANCH_NAME=enh-cliupdate-octopus-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV

- name: Checkout CLI
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
path: cli

- name: Checkout docs
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
repository: OctopusDeploy/docs
token: ${{ env.DOCS_TOKEN }}
Expand All @@ -43,16 +43,16 @@ jobs:
git checkout -b $BRANCH_NAME

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: 1.21
go-version-file: cli/go.mod

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this change doing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoids drift and maintaining version number in more places, it's the 2nd line in the go.mod file, and this mechanism gets it from there.

CleanShot 2026-07-16 at 13 21 40


- name: Generate cli docs
working-directory: cli
run: mkdir -p ../docs/src/pages/docs/octopus-rest-api/cli && go run cmd/gen-docs/main.go --website --doc-path ../docs/src/pages/docs/octopus-rest-api/cli --relative-base-path /docs/octopus-rest-api/cli

- name: Commit
uses: EndBug/add-and-commit@v9
uses: EndBug/add-and-commit@v10
with:
message: 'Update cli docs for octopus(go)'
author_name: Bob
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/go-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: 1.21
go-version-file: go.mod

- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
echo "::set-output name=version::$version"

- name: Upload goreleaser built binaries to artifact octopus-cli.${{ steps.calculate-version.outputs.version }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: octopus-cli.${{ steps.calculate-version.outputs.version }}
path: |
Expand All @@ -90,13 +90,13 @@ jobs:
msi_file: ${{ steps.buildmsi.outputs.msi }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- uses: microsoft/setup-msbuild@v1.1
- uses: microsoft/setup-msbuild@v3
id: setupmsbuild

- name: Download goreleaser built binaries from artifact octopus-cli.${{ needs.goreleaser.outputs.version }}
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: octopus-cli.${{ needs.goreleaser.outputs.version }}
path: artifacts/
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
run: cp "${{ steps.buildmsi.outputs.msi }}" "${{ github.workspace }}/artifacts/${{ steps.buildmsi.outputs.msi_name }}"

- name: Re-upload artifacts with MSI to octopus-cli.${{ needs.goreleaser.outputs.version }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: octopus-cli.${{ needs.goreleaser.outputs.version }}
path: artifacts/
Expand All @@ -199,18 +199,18 @@ jobs:
OCTOPUS_SPACE: Integrations

steps:
- uses: actions/checkout@v3
- uses: nuget/setup-nuget@v1
- uses: actions/checkout@v5
- uses: nuget/setup-nuget@v3

- name: checkout OctopusDeploy/linux-package-feeds so we can take the package publish scripts from it
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
repository: OctopusDeploy/linux-package-feeds
token: ${{ secrets.INTEGRATIONS_FNM_BOT_TOKEN }}
path: linux-package-feeds

- name: Download goreleaser built binaries and MSI from artifact octopus-cli.${{ needs.goreleaser.outputs.version }}
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: octopus-cli.${{ needs.goreleaser.outputs.version }}
path: artifacts/
Expand All @@ -225,7 +225,7 @@ jobs:
- name: Copy publish-apt.sh and publish-rpm.sh
run: cp linux-package-feeds/source/publish-*.sh artifacts/

- uses: OctopusDeploy/create-zip-package-action@v3
- uses: OctopusDeploy/create-zip-package-action@v4
id: package
with:
package_id: octopus-cli
Expand All @@ -234,7 +234,7 @@ jobs:
files: '**/*'
output_folder: .

- uses: OctopusDeploy/push-package-action@v3
- uses: OctopusDeploy/push-package-action@v4
with:
packages: ${{ steps.package.outputs.package_file_path }}

Expand All @@ -249,7 +249,7 @@ jobs:
gh release view "${{ needs.goreleaser.outputs.tag_name }}" --jq '.body' --json 'body' | sed 's#\r# #g' > $OUTPUT_FILE
echo "::set-output name=release-note-file::$OUTPUT_FILE"

- uses: OctopusDeploy/create-release-action@v3
- uses: OctopusDeploy/create-release-action@v4
if: "!contains(needs.goreleaser.outputs.version, '-')"
with:
project: 'cli'
Expand All @@ -272,7 +272,7 @@ jobs:
run: echo "BRANCH_NAME=releases-json-update-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV

- name: Checkout CLI
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
path: cli

Expand All @@ -290,7 +290,7 @@ jobs:
run: curl -s https://api.github.com/repos/OctopusDeploy/cli/releases?per_page=100 > releases.json

- name: Commit
uses: EndBug/add-and-commit@v9
uses: EndBug/add-and-commit@v10
with:
message: 'chore: update cli releases.json'
author_name: Bob
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
statuses: write
checks: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: 1.21
go-version-file: go.mod

- name: Setup gotestsum
run: go install gotest.tools/gotestsum@latest
Expand All @@ -68,7 +68,7 @@ jobs:
working-directory: ./test/integration

- name: Test Report
uses: dorny/test-reporter@v1
uses: dorny/test-reporter@v3
if: success() || failure()
with:
name: Test Results
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
statuses: write
checks: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: 1.21
go-version-file: go.mod

# if we just run the unit tests then go doesn't compile the parts of the app that aren't covered by
# unit tests; this forces it
Expand All @@ -33,7 +33,7 @@ jobs:
working-directory: ./pkg

- name: Test Report
uses: dorny/test-reporter@v1
uses: dorny/test-reporter@v3
if: success() || failure()
with:
name: Test Results
Expand Down