Skip to content

Commit

Permalink
CI - try other mirror action
Browse files Browse the repository at this point in the history
  • Loading branch information
lwih committed Jan 31, 2024
1 parent 62033c3 commit 547445a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
59 changes: 34 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,41 @@ jobs:
with:
fetch-depth: 0

- name: Get frontend version
uses: avides/[email protected]
id: frontend_version
# - name: Get frontend version
# uses: avides/[email protected]
# id: frontend_version
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# file-to-check: frontend/package.json
# only-return-version: true
#
# - name: Upload Frontend sourcemaps
# uses: ./.github/actions/upload-sourcemaps
# with:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# VERSION: ${{ steps.frontend_version.outputs.version }}

- uses: yesolutions/mirror-action@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
file-to-check: frontend/package.json
only-return-version: true

- name: Upload Frontend sourcemaps
uses: ./.github/actions/upload-sourcemaps
with:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VERSION: ${{ steps.frontend_version.outputs.version }}

- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
with:
args: https://gitlab-sml.din.developpement-durable.gouv.fr/num3-exploitation/deploiement-continu/gitlab-ci/applications/rapportnav-v2/rapportnav-v2.git
env:
FOLLOW_TAGS: true
FORCE_PUSH: true
GITLAB_HOSTNAME: "gitlab-sml.din.developpement-durable.gouv.fr"
GITLAB_USERNAME: ${{ github.actor }}
GITLAB_PASSWORD: ${{ secrets.GITLAB_MIRROR_TOKEN }}
GITLAB_PROJECT_ID: "num3-exploitation/deploiement-continu"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REMOTE: https://gitlab-sml.din.developpement-durable.gouv.fr/num3-exploitation/deploiement-continu/gitlab-ci/applications/rapportnav-v2/rapportnav-v2.git
GIT_USERNAME: ${{ github.actor }}
GIT_PASSWORD: ${{ secrets.GITLAB_MIRROR_TOKEN }}
GIT_PUSH_ARGS: "--tags --prune"
PUSH_ALL_REFS: false
DEBUG: true

# - name: Mirror + trigger CI
# uses: SvanBoxel/gitlab-mirror-and-ci-action@master
# with:
# args: https://gitlab-sml.din.developpement-durable.gouv.fr/num3-exploitation/deploiement-continu/gitlab-ci/applications/rapportnav-v2/rapportnav-v2.git
# env:
# FOLLOW_TAGS: true
# FORCE_PUSH: true
# GITLAB_HOSTNAME: "gitlab-sml.din.developpement-durable.gouv.fr"
# GITLAB_USERNAME: ${{ github.actor }}
# GITLAB_PASSWORD: ${{ secrets.GITLAB_MIRROR_TOKEN }}
# GITLAB_PROJECT_ID: "num3-exploitation/deploiement-continu"
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ class APIFishActionRepositoryEnv(
)
.build();

// test

val response = client.send(request, HttpResponse.BodyHandlers.ofString())

if (response.statusCode() in 200..299) {
Expand Down

0 comments on commit 547445a

Please sign in to comment.