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

Fix the mergeback workflow #534

Merged
merged 41 commits into from
Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
049e10c
Merge pull request #338 from github/update-v1-494945f7
robertbrignull Dec 7, 2020
4d26213
Merge pull request #345 from github/update-v1-8cbc02a4
chrisgavin Dec 14, 2020
b8f3d83
Prevent accidental analysis of the `get-pip.py` script.
chrisgavin Dec 22, 2020
c2dc865
Merge pull request #350 from github/prevent-accidental-analysis-of-ge…
chrisgavin Dec 22, 2020
bb9d573
Merge pull request #354 from github/update-v1-094554cf
chrisgavin Jan 4, 2021
32a206e
Merge pull request #359 from github/update-v1-a0c4707d
robertbrignull Jan 11, 2021
ce35c1c
Merge pull request #366 from github/update-v1-8659fb33
robertbrignull Jan 18, 2021
3a205cc
Merge pull request #372 from github/update-v1-7a340d32
robertbrignull Jan 25, 2021
0dcd795
Merge pull request #384 from github/update-v1-6408d722
rneatherway Feb 1, 2021
2102634
Merge pull request #388 from github/update-v1-781e3bc5
chrisgavin Feb 8, 2021
d00607b
Merge pull request #399 from github/update-v1-bcd7b2de
robertbrignull Feb 22, 2021
e40d003
Merge pull request #405 from github/update-v1-964ae012
chrisgavin Mar 1, 2021
145b51c
Merge pull request #410 from github/update-v1-bde489c6
simon-engledew Mar 8, 2021
5c4e118
Merge pull request #413 from github/update-v1-6ddfab14
adityasharad Mar 8, 2021
df93598
Merge pull request #415 from github/update-v1-2fcc4eb0
adityasharad Mar 9, 2021
0ed969c
Merge pull request #419 from github/update-v1-cfec2bbc
chrisgavin Mar 15, 2021
687b7b7
Merge pull request #429 from github/update-v1-5d467d01
adityasharad Mar 22, 2021
f8f120e
Merge pull request #434 from github/update-v1-bf8daada
hmakholm Mar 26, 2021
ed446be
Merge pull request #439 from github/update-v1-7f9fb10a
adityasharad Apr 5, 2021
757ff99
PR checks: Run integration tests against both `tools: null` and `tool…
adityasharad Apr 8, 2021
6b4df91
PR checks: Compare the default and latest CodeQL tools bundles
adityasharad Apr 9, 2021
8a00ebe
Code scanning: Compare the default and latest CodeQL tools bundles
adityasharad Apr 9, 2021
af641b2
Use externalRepoAuth when getting a remote config
aeisenberg Apr 9, 2021
9db4c57
Merge pull request #449 from github/update-v1-8bd2b351
aeisenberg Apr 19, 2021
75dbb28
Merge pull request #453 from github/update-v1-1fa35632
Daverlo Apr 20, 2021
429ece1
Merge pull request #455 from github/update-v1-896b4ff1
hmakholm Apr 21, 2021
83b730e
Merge pull request #461 from github/update-v1-7c5b1287
aeisenberg Apr 26, 2021
6b86057
Merge pull request #471 from github/update-v1-cb581084
hmakholm Apr 30, 2021
9a41542
Merge pull request #473 from github/update-v1-8e3540bb
adityasharad May 3, 2021
4a083a4
Merge pull request #491 from github/update-v1-f00bafbd
aeisenberg May 10, 2021
b393038
Merge pull request #504 from github/update-v1-21830ef0
aeisenberg May 17, 2021
88f6e15
Merge pull request #508 from github/update-v1-79c79f1b
hmakholm May 19, 2021
6764ac6
Merge pull request #527 from github/update-v1-eeaefb60
aeisenberg May 26, 2021
cf57db7
1.0.0
invalid-email-address May 31, 2021
dd66f44
Remove leading newline
aeisenberg May 31, 2021
4917d3c
Merge pull request #533 from github/update-v1.0.0-ff75ec7f
aeisenberg May 31, 2021
981b5cb
Fix the mergeback workflow
aeisenberg May 31, 2021
7d701d2
Merge remote-tracking branch 'upstream/v1' into aeisenberg/mergeback-fix
aeisenberg May 31, 2021
a94829c
Manually update the CHANGELOG
aeisenberg May 31, 2021
c02d8cc
Fix EOF newlines after `npm version patch`
aeisenberg May 31, 2021
f0e82b7
1.0.1
aeisenberg May 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/update-release-branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
import datetime
import os

EMPTY_CHANGELOG = """
# CodeQL Action and CodeQL Runner Changelog
EMPTY_CHANGELOG = """# CodeQL Action and CodeQL Runner Changelog

## [UNRELEASED]

Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/post-release-mergeback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,24 +74,27 @@ jobs:
set +e # don't fail on an errored command
git ls-remote --tags origin | grep "$VERSION"
EXISTS="$?"
if [ "$EXISTS" -ne 0 ]; then
echo "::set-output name=exists::true"
echo "Tag $TAG exists. Not going to re-release."
if [ "$EXISTS" -eq 0 ]; then
echo "Tag $TAG exists. Not going to re-release."
echo "::set-output name=exists::true"
else
echo "Tag $TAG does not exist yet."
fi

# we didn't tag the release during the update-release-branch workflow because the
# commit that actually makes it to the release branch is a merge commit,
# and not yet known during the first workflow. We tag now because we know the correct commit.
- name: Tag release
if: steps.check.outputs.exists == 'true'
if: steps.check.outputs.exists != 'true'
env:
VERSION: ${{ steps.getVersion.outputs.version }}
run: |
git tag -a "$VERSION" -m "$VERSION"
git fetch --unshallow # unshallow the repo in order to allow pushes
git push origin --follow-tags "$VERSION"

- name: Create mergeback branch
if: steps.check.outputs.exists == 'true'
if: steps.check.outputs.exists != 'true'
env:
VERSION: "${{ steps.getVersion.outputs.version }}"
NEW_BRANCH: "${{ steps.getVersion.outputs.newBranch }}"
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [UNRELEASED]

## 1.0.0 - 31 May 2021

- Add this changelog file. [#507](https://github.com/github/codeql-action/pull/507)
- Improve grouping of analysis logs. Add a new log group containing a summary of metrics and diagnostics, if they were produced by CodeQL builtin queries. [#515](https://github.com/github/codeql-action/pull/515)
- Add metrics and diagnostics summaries from custom query suites to the analysis summary log group. [#532](https://github.com/github/codeql-action/pull/532)
- Add metrics and diagnostics summaries from custom query suites to the analysis summary log group. [#532](https://github.com/github/codeql-action/pull/532)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeql",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"description": "CodeQL action",
"scripts": {
Expand All @@ -10,7 +10,7 @@
"lint": "eslint --report-unused-disable-directives --max-warnings=0 . --ext .js,.ts",
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --ext .js,.ts --fix",
"removeNPMAbsolutePaths": "removeNPMAbsolutePaths . --force",
"version": "cd runner && npm version patch && git add ."
"version": "cd runner && npm version patch && cd .. && npm run removeNPMAbsolutePaths && git add runner"
},
"ava": {
"typescript": {
Expand Down
2 changes: 1 addition & 1 deletion runner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeql-runner",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"description": "CodeQL runner",
"scripts": {
Expand Down