Skip to content

Commit

Permalink
fix: warning de que set-output está obsoleto
Browse files Browse the repository at this point in the history
  • Loading branch information
jesustorresdev committed Jul 19, 2023
1 parent 85c080b commit 281f9b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Obtener el nombre de la rama
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
echo "SOURCE_NAME=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> "$GITHUB_ENV"
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV"
- name: Configurar Ruby
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -55,11 +55,11 @@ jobs:
with:
branch: gh-pages
folder: output/www
target-folder: ${{ steps.branch_name.outputs.SOURCE_NAME }}
target-folder: ${{ env.SOURCE_NAME }}
clean: true

- name: Generar archivos para actualizar la raíz del sitio web
if: ${{ steps.branch_name.outputs.SOURCE_NAME == vars.CURRENT_BRANCH }}
if: ${{ env.SOURCE_NAME == vars.CURRENT_BRANCH }}
run: |
mkdir -p ${{ runner.temp }}/html
cp output/www/sitemap.xml ${{ runner.temp }}/html
Expand All @@ -68,15 +68,15 @@ jobs:
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0;url=https://ull-esit-sistemas-operativos.github.io/ssoo-apuntes/${{ steps.branch_name.outputs.SOURCE_NAME }}/">
<link rel="canonical" href="https://ull-esit-sistemas-operativos.github.io/ssoo-apuntes/${{ steps.branch_name.outputs.SOURCE_NAME }}/">
<meta http-equiv="refresh" content="0;url=https://ull-esit-sistemas-operativos.github.io/ssoo-apuntes/${{ env.SOURCE_NAME }}/">
<link rel="canonical" href="https://ull-esit-sistemas-operativos.github.io/ssoo-apuntes/${{ env.SOURCE_NAME }}/">
</head>
</html>
EOF
- name: Actualizar la raíz del sitio web
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ steps.branch_name.outputs.SOURCE_NAME == vars.CURRENT_BRANCH }}
if: ${{ env.SOURCE_NAME == vars.CURRENT_BRANCH }}
with:
branch: gh-pages
folder: ${{ runner.temp }}/html
Expand Down

0 comments on commit 281f9b2

Please sign in to comment.