Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mozilla-services/socorro
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c2b0a39b3d3cbb34e6216454dbd18d30dfb62fd3
Choose a base ref
..
head repository: mozilla-services/socorro
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7f7c8d40924769ddbd59b377b6f479f9fa094cca
Choose a head ref
Showing with 268 additions and 208 deletions.
  1. +34 −0 .github/workflows/release.yml
  2. +233 −207 webapp/package-lock.json
  3. +1 −1 webapp/package.json
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Draft a new production release

on:
workflow_dispatch: {}

jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Draft a new production release
run: |
# Determine tag
base_tag="$(date +v%Y.%m.%d)"
tag="$base_tag"
gh api "repos/${{ github.repository }}/tags" --paginate \
-q '.[].name | select(startswith("'"$tag"'"))' > matching_tags
for i in 1 2 3 4 5 6 7 8 9 error; do
if ! grep -qx "$tag" matching_tags; then
# Tag doesn't exist yet, good to use.
break
fi
if [ "$i" = error ]; then
echo "You've used up your tag budget for today. Try again tomorrow."
exit 1
fi
tag="$base_tag-$i"
done
# Create release
gh release create --repo "${{ github.repository }}" --draft --generate-notes "$tag"
env:
GH_TOKEN: ${{ github.token }}
Loading