Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Nov 13, 2024
1 parent e06db9c commit d86ed69
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/force_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
ref: ${{ github.ref_name }}
path: server-snap

- name: Set variables
id: prepare
working-directory: server-snap
Expand All @@ -34,11 +34,11 @@ jobs:
id: snap-build
with:
path: server-snap

- name: 'Clone tests repository'
uses: actions/checkout@v3
with:
repository: debdutdeb/rocket.chat.tests
repository: RocketChat/public-releases
submodules: true
path: tests

Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,34 @@ on:
required: true
github-token:
required: true
workflow_dispatch:
# this trigger uses existing version for release

jobs:
prereqs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps._id.outputs.version }}
steps:
- shell: bash
id: _id
run: |
tag=
if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
tag="$(awk -F: '/^version:/ snap/snapcraft.yaml {print $2}' | tr -d '[:space:]')"
else
tag="${{inputs.tag}}"
fi
echo "tag: $tag"
echo "version=$tag" >> $GITHUB_OUTPUT
build-and-test:
needs: [ prereqs ]
uses: RocketChat/server-snap/.github/workflows/test.yml@develop
with:
tag: ${{ inputs.tag }}
tag: ${{ needs.prereqs.outputs.version }}

release:
if: '! contains(inputs.tag, ''rc'')'
Expand Down

0 comments on commit d86ed69

Please sign in to comment.