Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.8.4 patch #1143

Merged
merged 8 commits into from
Oct 24, 2023
84 changes: 36 additions & 48 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ name: Build and Release
on:
workflow_dispatch:
inputs:
gh-token:
description: 'GitHub Token - used to create a commit in the backup-utils repo'
required: true
type: string
version:
description: 'Version - patch version of the release (e.g. x.y.z)'
required: true
Expand All @@ -21,22 +17,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
rc-app-token: ${{ steps.app-token.outputs.token }}
steps:
# resulting token still gets denied by the backup-utils repo
# see: https://github.com/actions/create-github-app-token/pull/46
# - uses: timreimherr/create-github-app-token@main
# id: app-token
# with:
# # required
# app_id: ${{ vars.RELEASE_CONTROLLER_APP_ID }}
# private_key: ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
# owner: ${{ github.repository_owner }}
# repositories: backup-utils,backup-utils-private
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.RELEASE_CONTROLLER_APP_ID }}
private-key: ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "backup-utils-private"
- name: Checkout backup-utils-private
uses: actions/checkout@v4
with:
token: ${{ github.event.inputs.gh-token }}
repository: github/backup-utils-private
token: ${{ steps.app-token.outputs.token }}
- name: Install dependencies
run: |
sudo apt-get update -y
Expand All @@ -50,14 +44,6 @@ jobs:
- name: Package deb
run: |
./script/package-deb
# many need to remove this once release-notes compilation is automated
- name: Rename deb artifact
run: |
for file in dist/github-backup-utils_*_all.deb; do
if [[ -f "$file" ]]; then
mv "$file" "dist/github-backup-utils_${{ github.event.inputs.version }}_all.deb"
fi
done
- name: Upload deb artifact
uses: actions/upload-artifact@v3
with:
Expand All @@ -79,35 +65,40 @@ jobs:
outputs:
commit_hash: ${{ steps.empty-commit.outputs.commit_hash }}
steps:
# resulting token still gets denied by the backup-utils repo
# see: https://github.com/actions/create-github-app-token/pull/46
# - uses: timreimherr/create-github-app-token@main
# id: app-token
# with:
# app_id: ${{ vars.RELEASE_CONTROLLER_APP_ID }}
# private_key: ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
# owner: ${{ github.repository_owner }}
# repositories: backup-utils,backup-utils-private
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.RELEASE_CONTROLLER_APP_ID }}
private-key: ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "backup-utils,backup-utils-private"
- name: Get major-feature from version
id: get-major-feature
run: |
echo "MAJOR_FEATURE=$(echo ${{ github.event.inputs.version }} | cut -d '.' -f 1,2)" >> "$GITHUB_ENV"
- name: Verify major-feature
run: |
echo "major_feature: $MAJOR_FEATURE"
- name: Checkout backup-utils
uses: actions/checkout@v4
with:
token: ${{ github.event.inputs.gh-token }}
token: ${{ steps.app-token.outputs.token }}
repository: github/backup-utils
ref: master
- name: Create empty commit
uses: stefanzweifel/git-auto-commit-action@v4
id: empty-commit
with:
branch: master
branch: ${{ env.MAJOR_FEATURE }}-stable
commit_message: "${{ github.event.inputs.version }} release"
commit_user_name: "${{ github.actor }}"
commit_user_email: "ghes-releases-team@github.com"
commit_user_name: "release-controller[bot]"
commit_user_email: "223695+release-controller[bot]@users.noreply.github.com"
commit_options: "--allow-empty"
push_options: "--force"
skip_dirty_check: true
- name: Checkout backup-utils
- name: Checkout backup-utils-private for release notes
uses: actions/checkout@v4
with:
token: ${{ github.event.inputs.gh-token }}
token: ${{ steps.app-token.outputs.token }}
repository: github/backup-utils-private
- name: Download deb artifact
uses: actions/download-artifact@v3
Expand All @@ -120,20 +111,17 @@ jobs:
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ github.event.inputs.gh-token }}
token: ${{ steps.app-token.outputs.token }}
owner: github
repo: backup-utils
name: |
GitHub Enterprise Server Backup Utilities v${{ github.event.inputs.version }}
artifacts: |
github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
github-backup-utils-v${{ github.event.inputs.version }}.tar.gz,
github-backup-utils_${{ github.event.inputs.version }}_all.deb
tag: v${{ github.event.inputs.version }}
commit: ${{ steps.empty-commit.outputs.commit_hash }}
commit: ${{ env.MAJOR_FEATURE }}-stable
bodyFile: release-notes/${{ github.event.inputs.version }}.md
draft: ${{ github.event.inputs.draft }}
allowUpdates: true
artifactContentType: "raw"




artifactContentType: "raw"
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
github-backup-utils (3.8.4) UNRELEASED; urgency=medium

* On an instance with Actions enabled, incorrect backup and restore settings prevented the storage container name from being restored. This made the logs from that container inaccessible, and caused Actions to create a new storage container in a different location. {% comment %} https://github.com/github/backup-utils-private/pull/651, https://github.com/github/backup-utils-private/pull/459 {% endcomment %}

-- ghes-releases-team Fri, 20 Oct 2023 18:49:24 +0000

github-backup-utils (3.8.3) UNRELEASED; urgency=medium

* Fix two issues with binary backup (slow gzip compression and support for restore from instances other than SQL master) #551
Expand Down
4 changes: 4 additions & 0 deletions release-notes/3.8.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Bug Fixes

* On an instance with Actions enabled, incorrect backup and restore settings prevented the storage container name from being restored. This made the logs from that container inaccessible, and caused Actions to create a new storage container in a different location. {% comment %} https://github.com/github/backup-utils-private/pull/651, https://github.com/github/backup-utils-private/pull/459 {% endcomment %}