Skip to content

πŸ€– SOberdorfer is validating PR #11

πŸ€– SOberdorfer is validating PR

πŸ€– SOberdorfer is validating PR #11

Workflow file for this run

name: On-Pull-Request
run-name: πŸ€– ${{ github.actor }} is validating PR
on:
push:
branches:
- feature/*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: true
jobs:
artifact-version:
runs-on: ubuntu-latest
outputs:
package: ${{ steps.package.artifact-version }}
steps:
- name: πŸ“₯ Checkout
uses: actions/checkout@v4
- name: πŸ“¦ Retrieve Artifact-version from package
id: package
run: |
BASE_REF=$(echo "${{ github.base_ref }}" | cut -d'/' -f2-)
if [ -z "$BASE_REF" ]; then
BASE_REF="$((minutes=$(date +%s)/60))"
fi
ARTIFACT_VERSION=$(jq -r '.version' package.json)-$BASE_REF
echo "πŸ“ Retrieved version: $ARTIFACT_VERSION" >> $GITHUB_STEP_SUMMARY
echo "artifact-version=${ARTIFACT_VERSION}-" >> $GITHUB_OUTPUT
artifact-build:
uses: ./.github/workflows/rwf_build.yml
with:
environment: test
artifact-name: gh-actions-playground
artifact-version: ${{ needs.artifact-version.outputs.package }}
secrets: inherit