mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
Update GitHub Action pipelines
Update dependencies and change the syntax of setting step output since set-output command is deprecated
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: ^1.19
|
go-version: ^1.19
|
||||||
|
|
||||||
|
4
.github/workflows/release-pr.yml
vendored
4
.github/workflows/release-pr.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Parse release version
|
- name: Parse release version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo "::set-output name=version::$(echo $GITHUB_REF | sed 's|^refs/heads/release/v?*||g')"
|
run: echo "version=$(echo "$GITHUB_REF" | sed 's|^refs/heads/release/v?*||g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Prepare Pull Request
|
- name: Prepare Pull Request
|
||||||
id: prep_pr
|
id: prep_pr
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
PR_BODY="${PR_BODY//'%'/'%25'}"
|
PR_BODY="${PR_BODY//'%'/'%25'}"
|
||||||
PR_BODY="${PR_BODY//$'\n'/'%0A'}"
|
PR_BODY="${PR_BODY//$'\n'/'%0A'}"
|
||||||
PR_BODY="${PR_BODY//$'\r'/'%0D'}"
|
PR_BODY="${PR_BODY//$'\r'/'%0D'}"
|
||||||
echo "::set-output name=pr_body::$(echo "$PR_BODY")"
|
echo "pr_body=$(echo "$PR_BODY")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Pull Request via API
|
- name: Create Pull Request via API
|
||||||
id: post_pr
|
id: post_pr
|
||||||
|
Reference in New Issue
Block a user