git.delta.rocks / unique-network / refs/commits / 0062945d0128

difftreelog

source

.github/actions/prepare/action.yml948 Bsourcehistory
1# .github/actions/prepare/action.yml2name: 'Preparation'3description: ''4runs:5  using: "composite"6  steps:7    - name: Setup Environment (PR)  8      if: ${{ github.event_name == 'pull_request' }}  9      shell: bash  10      run: |  11        echo "LAST_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> ${GITHUB_ENV}  12    - name: Setup Environment (Push)  13      if: ${{ github.event_name == 'push' }}  14      shell: bash  15      run: |  16        echo "LAST_COMMIT_SHA=${GITHUB_SHA}" >> ${GITHUB_ENV}17    - name: Run find-and-replace to remove slashes from branch name18      uses: mad9000/actions-find-and-replace-string@419      id: ref_slug20      with:21        source: ${{ github.head_ref }}22        find: '/'23        replace: '-'24    - name: Set BUILD_SHA, REF_SLUG25      shell: bash26      run: |27        echo "BUILD_SHA=${LAST_COMMIT_SHA:0:8}" >> $GITHUB_ENV28        echo "REF_SLUG=${{ steps.ref_slug.outputs.value }}" >> $GITHUB_ENV29