geowerkstatt / create-jira-release Goto Github PK
View Code? Open in Web Editor NEWCreates a new Jira release in your GitHub Actions workflow
License: MIT License
Creates a new Jira release in your GitHub Actions workflow
License: MIT License
If the workflow has already checked out an unshallow repository in an earlier step, this action will fail in the first step when calling running git fetch --prune --unshallow --tags.
I've made a small pull request to fix this issue here: #11
Ever time i create a new tag, the action retreive me all issues.
I implement the action, on release creation. Is that okey?
Tried to use this action on a local Github Action runner on a Mac Studio M1 and it breaks on a grep syntax issue:
Run export LC_ALL=en_US.utf8
export LC_ALL=en_US.utf8
git log $(git describe --abbrev=0 2> /dev/null || git rev-list --max-parents=0 HEAD)..HEAD | \
grep -oP "DNA-\d{1,}" | sort | uniq | \
sed 's/^\|$/"/g' | paste -sd , | awk '{print "RELATED_JIRA_ISSUES="$0}' >> $GITHUB_ENV
shell: /bin/bash --noprofile --norc -e -o pipefail {0}
grep: invalid option -- P
usage: grep [-abcdDEFGHhIiJLlMmnOopqRSsUVvwXxZz] [-A num] [-B num] [-C[num]]
[-e pattern] [-f file] [--binary-files=value] [--color=when]
[--context[=num]] [--directories=action] [--label] [--line-buffered]
[--null] [pattern] [file ...]
usage: paste [-s] [-d delimiters] file ...
Error: Process completed with exit code 1.
grep --version
on the machine gives me grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
Apparently the -P
option is not available on this version of grep.
On this man pageubuntu grep it states that -P is experimental, so maybe good idea to use some other regex syntax?
ParserError: D:\a\_temp\6ba14632-66d8-4201-80ec-834fd605aec8.ps1:2
Line |
2 | … ssues = @(""XYZ-106","XYZ-107","XYZ-13","XYZ-14", …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Unexpected token
I try to use the action, but it is not working
name: Create Jira release
on:
push:
tags: [ 'v*.*.*' ]
jobs:
version:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: |
echo ${GITHUB_REF#refs/tags/}
- name: Create Jira Release
uses: GeoWerkstatt/create-jira-release@v1
with:
jira-project-key: ${{ vars.JIRA_PROJECT_KEY }}
jira-automation-webhook: ${{ secrets.JIRA_AUTOMATION_WEBHOOK }}
build-version: v${GITHUB_REF#refs/tags/}
in github actions I get this error
Run GeoWerkstatt/create-jira-release@v1
Run git fetch --prune --unshallow --tags
From https://github.com/xxx/wy-ops-jira-github-test
* [new branch] beathorst-patch-1 -> origin/beathorst-patch-1
* [new branch] feature/DEVOPS-1-Test-Ticket -> origin/feature/DEVOPS-1-Test-Ticket
* [new branch] feature/DEVOPS-2-navigation-verbessern -> origin/feature/DEVOPS-2-navigation-verbessern
* [new branch] main -> origin/main
* [new tag] v1.0.0 -> v1.0.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.0.3 -> v1.0.3
* [new tag] v1.0.4 -> v1.0.4
* [new tag] v1.0.5 -> v1.0.5
* [new tag] v1.0.6 -> v1.0.6
* [new tag] v1.0.7 -> v1.0.7
* [new tag] v1.0.8 -> v1.0.8
! [rejected] v1.0.9 -> v1.0.9 (would clobber existing tag)
Error: Process completed with exit code 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.