Skip to content

Commit

Permalink
Update CICD repo to AkerBP
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbruvik committed Nov 13, 2023
1 parent 58769ee commit 751d25c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dispatch_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions: {}

jobs:
notify:
if: github.repository_owner == 'equinor'
if: github.repository_owner == 'akerbp-dataops'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
Expand All @@ -21,5 +21,5 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/equinor/witsml-explorer-equinor/dispatches \
https://api.github.com/repos/akerbp-dataops/witsml-explorer-cicd/dispatches \
-d '{"event_type":"mergedispatch ${{ github.ref_name }}","client_payload":{"branch": "${{ github.ref_name }}", "version":"latest"}}'
10 changes: 5 additions & 5 deletions .github/workflows/dispatch_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ permissions: {}

jobs:
fetchtag:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
steps:
- id: get
run: |
VERSION_ONLY=$(echo "${{ github.ref_name }}" | cut -d '@' -f2)
echo "tag-version=$VERSION_ONLY" >> $GITHUB_OUTPUT
outputs:
tag-version: ${{ steps.get.outputs.tag-version }}
tag-version: ${{ steps.get.outputs.tag-version }}

notify:
if: github.repository_owner == 'equinor'
if: github.repository_owner == 'akerbp-dataops'
needs: fetchtag
runs-on: ubuntu-latest
steps:
Expand All @@ -32,7 +32,7 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/equinor/witsml-explorer-equinor/dispatches \
https://api.github.com/repos/akerbp-dataops/witsml-explorer-cicd/dispatches \
-d '{"event_type":"tagdispatch ${{ github.ref_name }}","client_payload":{"tag": "${{ github.ref_name }}", "version":"${{ needs.fetchtag.outputs.tag-version }}"}}'
36 changes: 0 additions & 36 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 751d25c

Please sign in to comment.