fangwenxue
V2EX  ›  问与答

github action 问题

  •  
  •   fangwenxue · Jan 31, 2023 · 1600 views
    This topic created in 1222 days ago, the information mentioned may be changed or developed.
        steps:
          - uses: actions/checkout@v3
            env: 
              PROJECT_NAME: echo ${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/} | tr A-Z a-z 
    
    • echo ${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/} | tr A-Z a-z
    • 怎么赋值给到环境变量, 现在被当成字符串处理了
    3 replies    2023-02-01 09:16:26 +08:00
    BrettD
        1
    BrettD  
       Jan 31, 2023 via iPhone
    ${{ github.repository }}
    fangwenxue
        2
    fangwenxue  
    OP
       Jan 31, 2023
    @BrettD 这个带有用户名了,我只想要仓库名 让后转小写
    wdssmq
        3
    wdssmq  
       Feb 1, 2023
    「折腾」 GitHub Actions 如何提取推送的 Tag_电脑网络_沉冰浮水
    https://www.wdssmq.com/post/20220706871.html

    文档:

    https://docs.github.com/zh/actions/using-workflows/workflow-commands-for-github-actions

    见「设置环境变量」和「设置输出参数」,按需选用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2734 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:38 · PVG 20:38 · LAX 05:38 · JFK 08:38
    ♥ Do have faith in what you're doing.