Skip to content

Commit

Permalink
Merge branch 'git-for-windows:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryGwinnell authored Jul 6, 2024
2 parents 4e73fed + 51ebcc1 commit 9f747cf
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/break-pacman-upload-lease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: break-pacman-upload-lease
run-name: Break pacman upload lease

on:
workflow_dispatch:

jobs:
break-lease:
runs-on: ubuntu-latest
steps:
- name: Clone build-extra
shell: bash
run: git clone --depth 1 --single-branch -b main https://github.com/git-for-windows/build-extra /usr/src/build-extra

- name: Prepare home directory
if: env.AZURE_BLOBS_TOKEN != ''
env:
AZURE_BLOBS_TOKEN: ${{secrets.AZURE_BLOBS_TOKEN}}
shell: bash
run: |
echo "::add-mask::$(echo "$AZURE_BLOBS_TOKEN" | base64 -w 0)" &&
echo "$AZURE_BLOBS_TOKEN" >"$HOME"/.azure-blobs-token
- name: Break the lease
if: env.AZURE_BLOBS_TOKEN != ''
shell: bash
env:
AZURE_BLOBS_TOKEN: ${{secrets.AZURE_BLOBS_TOKEN}}
run: /usr/src/build-extra/pacman-helper.sh break_lock

- name: Clean up temporary files
if: always()
shell: bash
run: |
{ rm -rf "$HOME" || echo "Gracefully leaving files undeleted" >&2; }
1 change: 1 addition & 0 deletions github-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const createRelease = async (context, token, owner, repo, tagName, rev, name, bo
target_commitish: rev,
name,
body,
discussion_category_name: 'Announcements',
draft: draft === undefined ? true : draft,
prerelease: prerelease === undefined ? true : prerelease
}
Expand Down

0 comments on commit 9f747cf

Please sign in to comment.