Skip to content

Commit

Permalink
build(gha): update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 30, 2023
1 parent 5bf7ed8 commit 231c1bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 34 deletions.
16 changes: 0 additions & 16 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ inputs:
required: true

outputs:
token:
description: 'GitHub Token'
value: ${{ steps.credentials.outputs.token }}

image:
description: 'Docker image to use'
value: ${{ steps.setup.outputs.image }}
Expand All @@ -23,18 +19,6 @@ runs:
with:
composer-flags: --no-dev

- name: 'Import translations'
shell: bash
#language=sh
run: |
yarn run translations:import
- name: 'Download carrier logos'
shell: bash
#language=sh
run: |
yarn run download:carrier-logos
- name: 'Build frontend'
shell: bash
#language=sh
Expand Down
12 changes: 12 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,15 @@ runs:
- uses: myparcelnl/actions/yarn-install@v3
with:
node-version: 18

- name: 'Import translations'
shell: bash
#language=sh
run: |
yarn translations:import
- name: 'Download carrier logos'
shell: bash
#language=sh
run: |
yarn download:carrier-logos
18 changes: 0 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,3 @@ jobs:
- release
- rebase-develop
uses: ./.github/workflows/rebase-prs.yml

prune-releases:
needs: release
if: needs.release.outputs.released == 'true' && (github.ref_name == 'alpha' || github.ref_name == 'beta')
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/setup-app-credentials@v3
id: credentials
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}

- uses: dev-drprasad/delete-older-releases@02a7034dca897d85c149ca759d6e1fd40b953af3
with:
keep_latest: 1
delete_tag_pattern: ${{ github.ref_name }} # alpha or beta
env:
GITHUB_TOKEN: ${{ steps.credentials.outputs.token }}

0 comments on commit 231c1bb

Please sign in to comment.