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

Implement a set of Github Actions #58

Closed
thclark opened this issue Mar 17, 2022 · 0 comments · Fixed by #76
Closed

Implement a set of Github Actions #58

thclark opened this issue Mar 17, 2022 · 0 comments · Fixed by #76
Labels
actions Creating or updating github actions

Comments

@thclark
Copy link
Contributor

thclark commented Mar 17, 2022

Feature request

Use Case

We currently have a lot of complex scripts hanging around that we embed into github actions, for example:

      - name: Get Version
         id: get-version
          run: |
            PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
            echo "::set-output name=version::${PACKAGE_VERSION}"

        - name: Convert branch name to tag
          # Get the github ref as a slugified docker tag
          id: branch
          run: echo "::set-output name=branch_tag::$(echo ${GITHUB_REF#refs/heads/} | iconv -c -t ascii//TRANSLIT | sed -E 's/[~^]+//g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$//g' | tr A-Z a-z)"

      - name: Check Version
        if: # If it's a PR into main...
        run: |
          something complicated

It would be good to begin compiling a set of github actions to streamline this process in repositories using conventional commits (and octue in general) so we could define workflows that look like:

      - name: Get Version
        uses: octue/actions-get-version@v1 # or gha-get-version or something consistent
        from: package.json

      - name: Check Version
        if: # If it's a PR into main, otherwise skip check
        uses: octue/actions-check-version@v1
@thclark thclark added the actions Creating or updating github actions label Jul 18, 2022
@thclark thclark moved this to Priority 3 (High) in Octue Board Jul 18, 2022
@thclark thclark moved this from Priority 3 (High) to Priority 2 (Medium) in Octue Board Jul 18, 2022
@cortadocodes cortadocodes linked a pull request Sep 29, 2022 that will close this issue
Repository owner moved this from Priority 2 (Medium) to Done in Octue Board Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actions Creating or updating github actions
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant