Merge pull request #534 from github/aeisenberg/mergeback-fix
Fix the mergeback workflow
This commit is contained in:
commit
4b4a5ee9d1
7 changed files with 18 additions and 14 deletions
3
.github/update-release-branch.py
vendored
3
.github/update-release-branch.py
vendored
|
|
@ -8,8 +8,7 @@ import json
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
|
|
||||||
EMPTY_CHANGELOG = """
|
EMPTY_CHANGELOG = """# CodeQL Action and CodeQL Runner Changelog
|
||||||
# CodeQL Action and CodeQL Runner Changelog
|
|
||||||
|
|
||||||
## [UNRELEASED]
|
## [UNRELEASED]
|
||||||
|
|
||||||
|
|
|
||||||
13
.github/workflows/post-release-mergeback.yml
vendored
13
.github/workflows/post-release-mergeback.yml
vendored
|
|
@ -74,24 +74,27 @@ jobs:
|
||||||
set +e # don't fail on an errored command
|
set +e # don't fail on an errored command
|
||||||
git ls-remote --tags origin | grep "$VERSION"
|
git ls-remote --tags origin | grep "$VERSION"
|
||||||
EXISTS="$?"
|
EXISTS="$?"
|
||||||
if [ "$EXISTS" -ne 0 ]; then
|
if [ "$EXISTS" -eq 0 ]; then
|
||||||
echo "::set-output name=exists::true"
|
echo "Tag $TAG exists. Not going to re-release."
|
||||||
echo "Tag $TAG exists. Not going to re-release."
|
echo "::set-output name=exists::true"
|
||||||
|
else
|
||||||
|
echo "Tag $TAG does not exist yet."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# we didn't tag the release during the update-release-branch workflow because the
|
# 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,
|
# 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.
|
# and not yet known during the first workflow. We tag now because we know the correct commit.
|
||||||
- name: Tag release
|
- name: Tag release
|
||||||
if: steps.check.outputs.exists == 'true'
|
if: steps.check.outputs.exists != 'true'
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.getVersion.outputs.version }}
|
VERSION: ${{ steps.getVersion.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
git tag -a "$VERSION" -m "$VERSION"
|
git tag -a "$VERSION" -m "$VERSION"
|
||||||
|
git fetch --unshallow # unshallow the repo in order to allow pushes
|
||||||
git push origin --follow-tags "$VERSION"
|
git push origin --follow-tags "$VERSION"
|
||||||
|
|
||||||
- name: Create mergeback branch
|
- name: Create mergeback branch
|
||||||
if: steps.check.outputs.exists == 'true'
|
if: steps.check.outputs.exists != 'true'
|
||||||
env:
|
env:
|
||||||
VERSION: "${{ steps.getVersion.outputs.version }}"
|
VERSION: "${{ steps.getVersion.outputs.version }}"
|
||||||
NEW_BRANCH: "${{ steps.getVersion.outputs.newBranch }}"
|
NEW_BRANCH: "${{ steps.getVersion.outputs.newBranch }}"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
## [UNRELEASED]
|
## [UNRELEASED]
|
||||||
|
|
||||||
|
## 1.0.0 - 31 May 2021
|
||||||
|
|
||||||
- Add this changelog file. [#507](https://github.com/github/codeql-action/pull/507)
|
- 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)
|
- 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
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.2.6",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "CodeQL action",
|
"description": "CodeQL action",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
"lint": "eslint --report-unused-disable-directives --max-warnings=0 . --ext .js,.ts",
|
"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",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --ext .js,.ts --fix",
|
||||||
"removeNPMAbsolutePaths": "removeNPMAbsolutePaths . --force",
|
"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": {
|
"ava": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
|
|
|
||||||
2
runner/package-lock.json
generated
2
runner/package-lock.json
generated
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "codeql-runner",
|
"name": "codeql-runner",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "codeql-runner",
|
"name": "codeql-runner",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "CodeQL runner",
|
"description": "CodeQL runner",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue