Skip to content

Updates workflow to use v5 #37

Updates workflow to use v5

Updates workflow to use v5 #37

Workflow file for this run

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: mad9000/actions-find-and-replace-string@5
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: mad9000/actions-find-and-replace-string@5
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 }}"