Merge pull request #1 from step-security/release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
jobs: | |
find-and-replace-job: | |
runs-on: ubuntu-latest | |
name: 'Find and replace on a string' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run find-and-replace to remove refs/heads/ | |
uses: ./ | |
id: findandreplace | |
with: | |
source: ${{ github.ref }} | |
find: 'refs/heads/' | |
replace: '' | |
- name: Get the above output | |
run: echo "The replaced value is ${{ steps.findandreplace.outputs.value }}" | |
- name: Run find-and-replace to remove slashes | |
uses: ./ | |
id: findandreplace2 | |
with: | |
source: ${{ steps.findandreplace.outputs.value }} | |
find: '/' | |
replace: '-' | |
- name: Get the final output | |
run: echo "The replaced value is ${{ steps.findandreplace2.outputs.value }}" |