Giter VIP home page Giter VIP logo

create-jira-release's People

Contributors

dodrian avatar flenny avatar rarogcmex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

create-jira-release's Issues

Action fails if repository is unshallow

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

I has all issues

Ever time i create a new tag, the action retreive me all issues.
I implement the action, on release creation. Is that okey?

grep issues running on Mac OSX 13.2 (Ventura)

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?

Unexpected token while parsing issues to json string

ParserError: D:\a\_temp\6ba14632-66d8-4201-80ec-834fd605aec8.ps1:2
Line |
   2 |  … ssues = @(""XYZ-106","XYZ-107","XYZ-13","XYZ-14", …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unexpected token

Error "would clobber existing tag"

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.