Skip to content

Commit

Permalink
Merge pull request #26 from 1Password/release/v1.0.1
Browse files Browse the repository at this point in the history
Prepare Release - v1.0.1
  • Loading branch information
volodymyrZotov authored Mar 27, 2023
2 parents ed917be + aa4df01 commit e323a51
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
16 changes: 5 additions & 11 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
id: prep_pr
run: |
CHANGELOG_PATH=$(printf "%s/CHANGELOG.md" "${GITHUB_WORKSPACE}")
LOG_ENTRY=$(awk '/START\/v[0-9]+\.[0-9]+\.[0-9]+*/{f=1; next} /---/{if (f == 1) exit} f' "${CHANGELOG_PATH}")
export PR_BODY=$(cat <<EOF
DELIMITER="$(openssl rand -hex 8)" # DELIMITER is randomly generated and unique for each run. For more information, see https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#understanding-the-risk-of-script-injections.
PR_BODY_CONTENT="
This is an automated PR for a new release.
Please check the following before approving:
Expand All @@ -63,15 +63,9 @@ jobs:
---
## Release Changelog Preview
${LOG_ENTRY}
EOF
)
# Sanitizes multiline strings for action outputs (https://medium.com/agorapulse-stories/23f56447d209)
PR_BODY="${PR_BODY//'%'/'%25'}"
PR_BODY="${PR_BODY//$'\n'/'%0A'}"
PR_BODY="${PR_BODY//$'\r'/'%0D'}"
echo "pr_body=$(echo "$PR_BODY")" >> $GITHUB_OUTPUT
"
echo "pr_body<<${DELIMITER}${PR_BODY_CONTENT}${DELIMITER}" >> "${GITHUB_OUTPUT}"
- name: Create Pull Request via API
id: post_pr
uses: octokit/request-action@v2.x
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
## Security
* A user-friendly description of a security fix. {issue-number}


---

[//]: # "START/v1.0.1"

# v1.0.1

## Fixes
* Injector no longer overwrites pod `volumeMounts`. {#22}

---

[//]: # "START/v1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package version

var (
Version = "1.0.0"
Version = "1.0.1"
)

0 comments on commit e323a51

Please sign in to comment.