Skip to content

Commit

Permalink
⚗️ Experiment script to store prod tags #1770
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolucchesi committed Sep 21, 2023
1 parent ff78802 commit 567593f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/DEV-studio-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,33 @@ jobs:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: failure()

store-image-tags:
needs: deploy-studio
runs-on: ubuntu-latest
steps:
- name: Checkout internal 🛎️
id: checkout-internal
uses: actions/checkout@v3
with:
repository: 'equinor/energyvision-internal'
ref: main
token: ${{ secrets.PAT }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # Or any version you prefer

- name: Install dependencies
run: |
npm install js-yaml
- name: Run script for 'studio'
run: node storeImageTags.js studio
- name: Commit and push changes
run: |
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.PAT }}@github.com/equinor/energyvision-internal
git add latest-prod-tags.json
git commit -m "Update latest-prod-tags.json with new tags" || echo "No changes to commit"
git push

0 comments on commit 567593f

Please sign in to comment.